|
|||
|
|||
|


Public Member Functions | |
| ModuleGlobops (InspIRCd *Me) | |
| virtual | ~ModuleGlobops () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
| void | Implements (char *List) |
| The Implements function specifies which methods a module should receive events for. | |
Private Attributes | |
| cmd_globops * | mycommand |
Definition at line 48 of file m_globops.cpp.
|
|
Definition at line 52 of file m_globops.cpp. References InspIRCd::AddCommand(), SnomaskManager::EnableSnomask(), mycommand, Module::ServerInstance, and InspIRCd::SNO. 00053 : Module(Me) 00054 { 00055 mycommand = new cmd_globops(ServerInstance); 00056 ServerInstance->AddCommand(mycommand); 00057 ServerInstance->SNO->EnableSnomask('g',"GLOBOPS"); 00058 }
|
|
|
Definition at line 60 of file m_globops.cpp. References SnomaskManager::DisableSnomask(), Module::ServerInstance, and InspIRCd::SNO. 00061 { 00062 ServerInstance->SNO->DisableSnomask('g'); 00063 }
|
|
|
Returns the version number of a Module. The method should return a Version object with its version information assigned via Version::Version Reimplemented from Module. Definition at line 65 of file m_globops.cpp. References API_VERSION, VF_COMMON, and VF_VENDOR. 00066 { 00067 return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION); 00068 }
|
|
|
The Implements function specifies which methods a module should receive events for. The char* parameter passed to this function contains a set of true or false values (1 or 0) which indicate wether each function is implemented. You must use the Iimplementation enum (documented elsewhere on this page) to mark functions as active. For example, to receive events for OnUserJoin(): Implements[I_OnUserJoin] = 1;
Reimplemented from Module. Definition at line 70 of file m_globops.cpp.
|
|
|
Definition at line 50 of file m_globops.cpp. Referenced by ModuleGlobops(). |