mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 18:00:28 +00:00
commit
b54e664a63
@ -827,7 +827,7 @@ no_listenports(void)
|
|||||||
/**
|
/**
|
||||||
* Read contents of a text file into an array.
|
* Read contents of a text file into an array.
|
||||||
*
|
*
|
||||||
* This function is used to read the MOTD and help text file, for exampe.
|
* This function is used to read the MOTD and help text file, for example.
|
||||||
*
|
*
|
||||||
* @param filename Name of the file to read.
|
* @param filename Name of the file to read.
|
||||||
* @return true, when the file has been read in.
|
* @return true, when the file has been read in.
|
||||||
|
@ -361,8 +361,15 @@ IRC_WHOIS_SendReply(CLIENT *Client, CLIENT *from, CLIENT *c)
|
|||||||
return DISCONNECTED;
|
return DISCONNECTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* IRC-Services? */
|
||||||
|
if (Client_Type(c) == CLIENT_SERVICE &&
|
||||||
|
!IRC_WriteStrClient(from, RPL_WHOISSERVICE_MSG,
|
||||||
|
Client_ID(from), Client_ID(c)))
|
||||||
|
return DISCONNECTED;
|
||||||
|
|
||||||
/* IRC-Operator? */
|
/* IRC-Operator? */
|
||||||
if (Client_HasMode(c, 'o') &&
|
if (Client_Type(c) != CLIENT_SERVICE &&
|
||||||
|
Client_HasMode(c, 'o') &&
|
||||||
!IRC_WriteStrClient(from, RPL_WHOISOPERATOR_MSG,
|
!IRC_WriteStrClient(from, RPL_WHOISOPERATOR_MSG,
|
||||||
Client_ID(from), Client_ID(c)))
|
Client_ID(from), Client_ID(c)))
|
||||||
return DISCONNECTED;
|
return DISCONNECTED;
|
||||||
|
Loading…
Reference in New Issue
Block a user