|
|||
|
|||
|


Public Member Functions | |
| ModuleModesOnOper (InspIRCd *Me) | |
| virtual void | OnRehash (User *user, const std::string ¶meter) |
| Called on rehash. | |
| virtual | ~ModuleModesOnOper () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
| virtual void | OnPostOper (User *user, const std::string &opertype, const std::string &opername) |
| Called after a user opers locally. | |
| void | ApplyModes (User *u, std::string &smodes) |
Private Attributes | |
| ConfigReader * | Conf |
Definition at line 18 of file m_opermodes.cpp.
|
|
Definition at line 26 of file m_opermodes.cpp. References ModuleManager::Attach(), Conf, I_OnPostOper, I_OnRehash, InspIRCd::Modules, and Module::ServerInstance. |
|
|
Definition at line 42 of file m_opermodes.cpp. References Conf. |
|
||||||||||||
|
Definition at line 88 of file m_opermodes.cpp. References User::nick, InspIRCd::PI, InspIRCd::SendMode(), ProtocolInterface::SendMode(), Module::ServerInstance, and User::uuid. Referenced by OnPostOper(). |
|
|
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 47 of file m_opermodes.cpp. References API_VERSION, and VF_VENDOR. |
|
||||||||||||||||
|
Called after a user opers locally. This is identical to Module::OnOper(), except it is called after OnOper so that other modules can be gauranteed to already have processed the oper-up, for example m_spanningtree has sent out the OPERTYPE, etc.
Reimplemented from Module. Definition at line 52 of file m_opermodes.cpp. References ApplyModes(), Conf, User::oper, and ConfigReader::ReadValue(). |
|
||||||||||||
|
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_opermodes.cpp. References Conf, and Module::ServerInstance. |
|
|
Definition at line 23 of file m_opermodes.cpp. Referenced by ModuleModesOnOper(), OnPostOper(), OnRehash(), and ~ModuleModesOnOper(). |