Only enforce channel mode N on users (not servers or services)

This commit is contained in:
Ian Chard 2015-06-26 10:36:57 +01:00
parent 7ff16e8116
commit 599626d570
1 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,8 @@ IRC_NICK( CLIENT *Client, REQUEST *Req )
/* Nickname change */
/* Check that the user isn't on any channels set +N */
if(!Client_HasMode(Client, 'o')) {
if(Client_Type(Client) == CLIENT_USER &&
!Client_HasMode(Client, 'o')) {
chan = Channel_First();
while (chan) {
if(Channel_IsMemberOf(chan, Client) &&