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 --- include/modules.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/modules.h') diff --git a/include/modules.h b/include/modules.h index 112804524..1e2d1e3c5 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1271,7 +1271,9 @@ class CoreExport Module : public Extensible * @param userlist The user list for the channel (you may change this pointer. * If you want to change the values, take a copy first, and change the copy, then * point the pointer at your copy) - * @return 1 to prevent the user list being sent to the client, 0 to allow it + * @return 1 to prevent the user list being sent to the client, 0 to allow it. + * Returning -1 allows the names list, but bypasses any checks which check for + * channel membership before sending the names list. */ virtual int OnUserList(User* user, Channel* Ptr, CUList* &userlist); -- cgit v1.2.3