- 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
- {
- mycommand = new cmd_globops();
- Srv->AddCommand(mycommand);
- }
+ mycommand = new cmd_globops(ServerInstance);
+ ServerInstance->AddCommand(mycommand);
+ ServerInstance->SNO->EnableSnomask('g',"GLOBOPS");