X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spy.cpp;h=12aa0d347d841c21be6bd9ba5da05190816e97c5;hb=7107ec12d8640d35cfe3d5002db1bc1deb33625d;hp=297112f62e73b49704421c28b2cfecfd1057bea1;hpb=b6dbd6caab62bc2c0d11ce5a45d511611eb9c2ef;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spy.cpp b/src/modules/m_spy.cpp index 297112f62..12aa0d347 100644 --- a/src/modules/m_spy.cpp +++ b/src/modules/m_spy.cpp @@ -18,18 +18,17 @@ class ModuleSpy : public Module { public: - ModuleSpy(InspIRCd* Me) : Module(Me) - { + ModuleSpy() { ServerInstance->Modules->Attach(I_OnUserList, this); } - virtual int OnUserList(User* user, Channel* Ptr, CUList* &nameslist) + virtual ModResult OnUserList(User* user, Channel* Ptr) { /* User has priv and is NOT on the channel */ if (user->HasPrivPermission("channels/auspex") && !Ptr->HasUser(user)) - return -1; + return MOD_RES_ALLOW; - return 0; + return MOD_RES_PASSTHRU; } void Prioritize() @@ -45,7 +44,7 @@ class ModuleSpy : public Module virtual Version GetVersion() { - return Version("$Id$", VF_VENDOR, API_VERSION); + return Version("Provides the ability to see the complete names list of channels an oper is not a member of", VF_VENDOR, API_VERSION); } };