|
|||
|
|||
|


Public Member Functions | |
| ModuleOperLevels (InspIRCd *Me) | |
| virtual | ~ModuleOperLevels () |
| virtual void | OnRehash (User *user, const std::string ¶meter) |
| Called on rehash. | |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
| virtual int | OnKill (User *source, User *dest, const std::string &reason) |
| Called when a client is disconnected by KILL. | |
Private Attributes | |
| ConfigReader * | conf |
Definition at line 17 of file m_operlevels.cpp.
|
|
Definition at line 22 of file m_operlevels.cpp. References ModuleManager::Attach(), conf, I_OnKill, I_OnRehash, InspIRCd::Modules, and Module::ServerInstance. |
|
|
Definition at line 30 of file m_operlevels.cpp. References conf. |
|
|
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 42 of file m_operlevels.cpp. References API_VERSION, and VF_VENDOR. |
|
||||||||||||||||
|
Called when a client is disconnected by KILL. If a client is killed by a server, e.g. a nickname collision or protocol error, source is NULL. Return 1 from this function to prevent the kill, and 0 from this function to allow it as normal. If you prevent the kill no output will be sent to the client, it is down to your module to generate this information. NOTE: It is NOT advisable to stop kills which originate from servers or remote users. If you do so youre risking race conditions, desyncs and worse!
Reimplemented from Module. Definition at line 47 of file m_operlevels.cpp. References conf, ERR_NOPRIVILEGES, IS_OPER, User::nick, User::oper, ConfigReader::ReadInteger(), ConfigReader::ReadValue(), Module::ServerInstance, InspIRCd::SNO, User::WriteNumeric(), User::WriteServ(), and SnomaskManager::WriteToSnoMask(). |
|
||||||||||||
|
Called on rehash. This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application. If a parameter is given, the core has done nothing. The module receiving the event can decide if this parameter has any relevence to it.
Reimplemented from Module. Definition at line 36 of file m_operlevels.cpp. References conf, and Module::ServerInstance. |
|
|
Definition at line 20 of file m_operlevels.cpp. Referenced by ModuleOperLevels(), OnKill(), OnRehash(), and ~ModuleOperLevels(). |