]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spy.cpp
Move static map of extensions into ServerInstance, add const-correctness
[user/henk/code/inspircd.git] / src / modules / m_spy.cpp
index 485c104b87b646bb9fe0c51a2c561bfdf20dd280..12aa0d347d841c21be6bd9ba5da05190816e97c5 100644 (file)
 class ModuleSpy : public Module
 {
  public:
-       ModuleSpy(InspIRCd* Me) : Module(Me)
-       {
+       ModuleSpy()     {
                ServerInstance->Modules->Attach(I_OnUserList, this);
        }
 
-       virtual ModResult 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))
@@ -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);
        }
 };