From 3c055715a27fead89fab680e446f166e2da7a68a Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 18 Oct 2008 16:52:53 +0000 Subject: Implement channels/auspex priv for /names and /list. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10666 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spy.cpp') 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; -- cgit v1.2.3