|
|||
|
|||
|


Public Member Functions | |
| ModuleChanLog (InspIRCd *Me) | |
| virtual | ~ModuleChanLog () |
| virtual void | OnRehash (User *user, const std::string ¶meter) |
| Called on rehash. | |
| virtual int | OnSendSnotice (char &sno, std::string &desc, const std::string &msg) |
| Called whenever a snotice is about to be sent to a snomask. | |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
Private Attributes | |
| std::multimap< char, std::string > | logstreams |
Definition at line 18 of file m_chanlog.cpp.
|
|
Definition at line 27 of file m_chanlog.cpp. References ModuleManager::Attach(), I_OnRehash, I_OnSendSnotice, InspIRCd::Modules, OnRehash(), and Module::ServerInstance. |
|
|
Definition at line 35 of file m_chanlog.cpp. |
|
|
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 98 of file m_chanlog.cpp. References API_VERSION, and VF_VENDOR. |
|
||||||||||||
|
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 39 of file m_chanlog.cpp. References DEFAULT, ConfigReader::Enumerate(), LogManager::Log(), InspIRCd::Logs, logstreams, ConfigReader::ReadValue(), and Module::ServerInstance. Referenced by ModuleChanLog(). |
|
||||||||||||||||
|
Called whenever a snotice is about to be sent to a snomask. snomask and type may both be modified; the message may not.
Reimplemented from Module. Definition at line 67 of file m_chanlog.cpp. References InspIRCd::Config, InspIRCd::FindChan(), logstreams, MAXBUF, Channel::name, InspIRCd::PI, ProtocolInterface::SendChannelPrivmsg(), Module::ServerInstance, ServerConfig::ServerName, and Channel::WriteChannelWithServ(). |
|
|
Definition at line 24 of file m_chanlog.cpp. Referenced by OnRehash(), and OnSendSnotice(). |