|
|||
|
|||
|


Public Member Functions | |
| ModuleFilter (InspIRCd *Me) | |
| virtual | ~ModuleFilter () |
| virtual FilterResult * | FilterMatch (User *user, const std::string &text, int flgs) |
| virtual bool | DeleteFilter (const std::string &freeform) |
| virtual void | SyncFilters (Module *proto, void *opaque) |
| virtual std::pair< bool, std::string > | AddFilter (const std::string &freeform, const std::string &type, const std::string &reason, long duration, const std::string &flgs) |
| virtual void | OnRehash (User *user, const std::string ¶meter) |
| Called on rehash. | |
| void | ReadFilters (ConfigReader &MyConf) |
| virtual int | OnStats (char symbol, User *user, string_list &results) |
| Called on all /STATS commands This method is triggered for all /STATS use, including stats symbols handled by the core. | |
Private Attributes | |
| std::vector< ImplFilter > | filters |
| const char * | error |
| int | erroffset |
| ImplFilter | fr |
Definition at line 540 of file m_filter.cpp.
|
|
Definition at line 548 of file m_filter.cpp. References OnRehash(). |
|
|
Definition at line 554 of file m_filter.cpp. |
|
||||||||||||||||||||||||
|
Implements FilterBase. Definition at line 606 of file m_filter.cpp. References DEFAULT, filters, CoreException::GetReason(), LogManager::Log(), InspIRCd::Logs, and Module::ServerInstance. |
|
|
Implements FilterBase. Definition at line 584 of file m_filter.cpp. References filters. Referenced by ReadFilters(). |
|
||||||||||||||||
|
Implements FilterBase. Definition at line 558 of file m_filter.cpp. References FilterBase::AppliesToMe(), filters, and fr. |
|
||||||||||||
|
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 FilterBase. Definition at line 628 of file m_filter.cpp. References FilterBase::OnRehash(), ReadFilters(), and Module::ServerInstance. Referenced by ModuleFilter(). |
|
||||||||||||||||
|
Called on all /STATS commands This method is triggered for all /STATS use, including stats symbols handled by the core.
Implements FilterBase. Definition at line 663 of file m_filter.cpp. References InspIRCd::Config, ConvToStr(), FilterBase::exemptfromfilter, filters, User::nick, RegexEngine, Module::ServerInstance, and ServerConfig::ServerName. |
|
|
Implements FilterBase. Definition at line 635 of file m_filter.cpp. References DEFAULT, DeleteFilter(), InspIRCd::Duration(), ConfigReader::Enumerate(), filters, CoreException::GetReason(), LogManager::Log(), InspIRCd::Logs, ConfigReader::ReadValue(), and Module::ServerInstance. Referenced by OnRehash(). |
|
||||||||||||
|
Implements FilterBase. Definition at line 598 of file m_filter.cpp. References filters, and FilterBase::SendFilter(). |
|
|
Definition at line 544 of file m_filter.cpp. |
|
|
Definition at line 543 of file m_filter.cpp. |
|
|
Definition at line 542 of file m_filter.cpp. Referenced by AddFilter(), DeleteFilter(), FilterMatch(), OnStats(), ReadFilters(), and SyncFilters(). |
|
|
Definition at line 545 of file m_filter.cpp. Referenced by FilterMatch(). |