From 599626d570f5bd5284a7a30fb8c3ca8dc3636371 Mon Sep 17 00:00:00 2001 From: Ian Chard Date: Fri, 26 Jun 2015 10:36:57 +0100 Subject: [PATCH] Only enforce channel mode N on users (not servers or services) --- src/ngircd/irc-login.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) && -- 2.39.2