diff options
| author | Ian Chard <ian@chard.org> | 2015-06-26 10:36:57 +0100 |
|---|---|---|
| committer | Ian Chard <ian@chard.org> | 2015-06-26 10:36:57 +0100 |
| commit | 599626d570f5bd5284a7a30fb8c3ca8dc3636371 (patch) | |
| tree | a85f3b86fb6b159b63bb0c528465bc7201be7f35 | |
| parent | 7ff16e81163b3bee43ce053cb86fb2df2a023d53 (diff) | |
| download | ngircd-599626d570f5bd5284a7a30fb8c3ca8dc3636371.tar.gz ngircd-599626d570f5bd5284a7a30fb8c3ca8dc3636371.zip | |
Only enforce channel mode N on users (not servers or services)
| -rw-r--r-- | src/ngircd/irc-login.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) && |