From abc959a04d7c6de7f192992693e69cd5e798c8b9 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 10 Nov 2007 16:19:46 +0000 Subject: m_spy no longer implements SPYNAMES, instead it overrides normal NAMES on the event that: (1) you are an oper and (2) you are not actually ON the channel. This way it will not break m_auditorium, m_delayjoin etc, however it will work properly with mircs annoying assumptions in its channel list git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8555 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index 764126891..14f0f55f1 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -835,6 +835,14 @@ void Channel::UserList(User *user, CUList *ulist) FOREACH_RESULT(I_OnUserList,OnUserList(user, this, ulist)); if (MOD_RESULT == 1) return; + if (MOD_RESULT != -1) + { + if ((this->IsModeSet('s')) && (!this->HasUser(user))) + { + user->WriteServ("401 %s %s :No such nick/channel",user->nick, this->name); + return; + } + } dlen = curlen = snprintf(list,MAXBUF,"353 %s %c %s :", user->nick, this->IsModeSet('s') ? '@' : this->IsModeSet('p') ? '*' : '=', this->name); -- cgit v1.3.1-10-gc9f91