First check if channel has mode "N", then check membership
This should be more efficient.
This commit is contained in:
parent
90ea23ab4f
commit
b8482fd3cf
|
@ -266,8 +266,8 @@ IRC_NICK( CLIENT *Client, REQUEST *Req )
|
|||
!Client_HasMode(Client, 'o')) {
|
||||
chan = Channel_First();
|
||||
while (chan) {
|
||||
if(Channel_IsMemberOf(chan, Client) &&
|
||||
Channel_HasMode(chan, 'N'))
|
||||
if(Channel_HasMode(chan, 'N') &&
|
||||
Channel_IsMemberOf(chan, Client))
|
||||
return IRC_WriteErrClient(Client,
|
||||
ERR_NONICKCHANGE_MSG,
|
||||
Client_ID(Client),
|
||||
|
|
Loading…
Reference in New Issue