/* $ModDesc: Provides support for GLOBOPS and user mode +g */
-static Server *Srv;
-extern InspIRCd* ServerInstance;
+
class cmd_globops : public command_t
{
public:
- cmd_globops () : command_t("GLOBOPS",'o',1)
+ cmd_globops (InspIRCd* Instance) : command_t(Instance,"GLOBOPS",'o',1)
{
this->source = "m_globops.so";
syntax = "<any-text>";
cmd_globops* mycommand;
ModeGlobops* mg;
public:
- ModuleGlobops(Server* Me)
+ ModuleGlobops(InspIRCd* Me)
: Module::Module(Me)
{
- Srv = Me;
+
mg = new ModeGlobops(ServerInstance);
- Srv->AddMode(mg, 'g');
- mycommand = new cmd_globops();
- Srv->AddCommand(mycommand);
+ ServerInstance->AddMode(mg, 'g');
+ mycommand = new cmd_globops(ServerInstance);
+ ServerInstance->AddCommand(mycommand);
}
virtual ~ModuleGlobops()
{
}
- virtual Module * CreateModule(Server* Me)
+ virtual Module * CreateModule(InspIRCd* Me)
{
return new ModuleGlobops(Me);
}