X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc-login.c;fp=src%2Fngircd%2Firc-login.c;h=35026e5587300d08ebb61f9bf9af3a9f99824475;hp=10885f281ef4ce2b4adc3df97c06356ab074e227;hb=599626d570f5bd5284a7a30fb8c3ca8dc3636371;hpb=7ff16e81163b3bee43ce053cb86fb2df2a023d53 diff --git a/src/ngircd/irc-login.c b/src/ngircd/irc-login.c index 10885f28..35026e55 100644 --- a/src/ngircd/irc-login.c +++ b/src/ngircd/irc-login.c @@ -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) &&