- Srv = Me;
-
- if (!Srv->AddExtendedMode('g',MT_CLIENT,true,0,0))
- {
- Srv->Log(DEFAULT,"*** m_globops: ERROR, failed to allocate user mode +g!");
- printf("Could not claim usermode +g for this module!");
- return;
- }
- else Srv->AddCommand("GLOBOPS",handle_globops,'o',1,"m_globops.so");
+ mycommand = new cmd_globops(ServerInstance);
+ ServerInstance->AddCommand(mycommand);
+ ServerInstance->SNO->EnableSnomask('g',"GLOBOPS");