summaryrefslogtreecommitdiff
path: root/src/modules/m_spy.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-18 16:52:53 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-18 16:52:53 +0000
commit3c055715a27fead89fab680e446f166e2da7a68a (patch)
tree8db973f43635b0b6d19dfc4d609c2132939a9eeb /src/modules/m_spy.cpp
parentdd54c42f5f27dcee1cad7fe8a606be5cf8442c7c (diff)
Implement channels/auspex priv for /names and /list.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10666 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spy.cpp')
-rw-r--r--src/modules/m_spy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spy.cpp b/src/modules/m_spy.cpp
index 54d2983b0..75fe2b367 100644
--- a/src/modules/m_spy.cpp
+++ b/src/modules/m_spy.cpp
@@ -25,8 +25,8 @@ class ModuleSpy : public Module
virtual int OnUserList(User* user, Channel* Ptr, CUList* &nameslist)
{
- /* User is an oper and is NOT on the channel */
- if (IS_OPER(user) && !Ptr->HasUser(user))
+ /* User has priv and is NOT on the channel */
+ if (user->HasPrivPermission("channels/auspex") && !Ptr->HasUser(user))
return -1;
return 0;