Only enforce channel mode N on users (not servers or services)
authorIan Chard <ian@chard.org>
Fri, 26 Jun 2015 09:36:57 +0000 (10:36 +0100)
committerIan Chard <ian@chard.org>
Fri, 26 Jun 2015 09:36:57 +0000 (10:36 +0100)
src/ngircd/irc-login.c

index 10885f281ef4ce2b4adc3df97c06356ab074e227..35026e5587300d08ebb61f9bf9af3a9f99824475 100644 (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) &&