]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spy.cpp
Flexible SendQ
[user/henk/code/inspircd.git] / src / modules / m_spy.cpp
index 297112f62e73b49704421c28b2cfecfd1057bea1..12aa0d347d841c21be6bd9ba5da05190816e97c5 100644 (file)
 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);
        }
 };