mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-13 02:10:27 +00:00
Handle services in IRC_WHOIS_SendReply()
If the target is a service, advertise it as such and ignore operator mode.
This commit is contained in:
parent
5021977bb1
commit
7adc4b8e99
@ -361,8 +361,15 @@ IRC_WHOIS_SendReply(CLIENT *Client, CLIENT *from, CLIENT *c)
|
||||
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? */
|
||||
if (Client_HasMode(c, 'o') &&
|
||||
if (Client_Type(c) != CLIENT_SERVICE &&
|
||||
Client_HasMode(c, 'o') &&
|
||||
!IRC_WriteStrClient(from, RPL_WHOISOPERATOR_MSG,
|
||||
Client_ID(from), Client_ID(c)))
|
||||
return DISCONNECTED;
|
||||
|
Loading…
Reference in New Issue
Block a user