]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spy.cpp
Remove the intercomm system since sqlite is synchronous.
[user/henk/code/inspircd.git] / src / modules / m_spy.cpp
index d00983971ee8b5ac2a8885b8f097425aea93b424..85953f391963e51f2f4ecd65cf42b3f995cb5bd5 100644 (file)
@@ -3,7 +3,7 @@
  *       +------------------------------------+
  *
  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *         the file COPYING for details.
 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);
        }
 };