]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spy.cpp
We were already sending FMODE +nt after each channel creation to keep services happy...
[user/henk/code/inspircd.git] / src / modules / m_spy.cpp
index 7c91119b7abe0e992a5e6862931fea393d53907b..17998b9643a87ac3047c3356c690c1cc0498e407 100644 (file)
 
 /* $ModDesc: Provides SPYLIST and SPYNAMES capability, allowing opers to see who's in +s channels */
 
-#include "inspircd_config.h"
+#include "inspircd.h"
 #include "users.h" 
 #include "channels.h"
 #include "modules.h"
-#include "inspircd.h"
 #include "wildcard.h"
 
 void spy_userlist(userrec *user, chanrec *c)
@@ -127,7 +126,6 @@ class cmd_spynames : public command_t
                {
                        ServerInstance->WriteOpers("*** Oper %s used SPYNAMES to view the users on %s", user->nick, parameters[0]);
                        spy_userlist(user,c);
-                       user->WriteServ("366 %s %s :End of /NAMES list.", user->nick, c->name);
                }
                else
                {
@@ -143,7 +141,7 @@ class ModuleSpy : public Module
        cmd_spylist *mycommand;
        cmd_spynames *mycommand2;
  public:
-       ModuleSpy(InspIRCd* Me) : Module::Module(Me)
+       ModuleSpy(InspIRCd* Me) : Module(Me)
        {
                
                mycommand = new cmd_spylist(ServerInstance);
@@ -182,7 +180,7 @@ class ModuleSpyFactory : public ModuleFactory
 };
 
 
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
 {
        return new ModuleSpyFactory;
 }