* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
- * E-mail:
- * <brain@chatspike.net>
- * <Craig@chatspike.net>
- *
- * Written by Craig Edwards, Craig McLure, and others.
+ * InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* ---------------------------------------------------
*/
-using namespace std;
-
// Globops and +g support module by C.J.Edwards
-#include <stdio.h>
-#include <string>
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
#include "inspircd.h"
/* $ModDesc: Provides support for GLOBOPS and user mode +g */
{
this->source = "m_globops.so";
syntax = "<any-text>";
+ TRANSLATE2(TR_TEXT, TR_END);
}
CmdResult Handle (const char** parameters, int pcnt, userrec *user)
}
ServerInstance->SNO->WriteToSnoMask('g',line);
+ /* route it (ofc :p) */
return CMD_SUCCESS;
}
};
cmd_globops* mycommand;
public:
ModuleGlobops(InspIRCd* Me)
- : Module::Module(Me)
+ : Module(Me)
{
mycommand = new cmd_globops(ServerInstance);
ServerInstance->AddCommand(mycommand);
virtual ~ModuleGlobops()
{
ServerInstance->SNO->DisableSnomask('g');
- DELETE(mycommand);
}
virtual Version GetVersion()
}
};
-class ModuleGlobopsFactory : public ModuleFactory
-{
- public:
- ModuleGlobopsFactory()
- {
- }
-
- ~ModuleGlobopsFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleGlobops(Me);
- }
-
-};
-
-
-extern "C" void * init_module( void )
-{
- return new ModuleGlobopsFactory;
-}
-
+MODULE_INIT(ModuleGlobops)