|
|||
|
|||
|


Public Member Functions | |
| ModuleFilterPCRE (InspIRCd *Me) | |
| virtual | ~ModuleFilterPCRE () |
| 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. | |
| 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< PCREFilter > | filters |
| pcre * | re |
| const char * | error |
| int | erroffset |
| PCREFilter | fr |
Definition at line 45 of file m_filter_pcre.cpp.
|
|
Definition at line 54 of file m_filter_pcre.cpp. References OnRehash(). |
|
|
Definition at line 61 of file m_filter_pcre.cpp. |
|
||||||||||||||||||||||||
|
Implements FilterBase. Definition at line 110 of file m_filter_pcre.cpp. References ConvToStr(), DEFAULT, erroffset, error, filters, LogManager::Log(), InspIRCd::Logs, re, and Module::ServerInstance. |
|
|
Implements FilterBase. Definition at line 88 of file m_filter_pcre.cpp. References filters. Referenced by OnRehash(). |
|
||||||||||||||||
|
Implements FilterBase. Definition at line 65 of file m_filter_pcre.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 135 of file m_filter_pcre.cpp. References DEFAULT, DeleteFilter(), InspIRCd::Duration(), ConfigReader::Enumerate(), erroffset, error, filters, LogManager::Log(), InspIRCd::Logs, FilterBase::OnRehash(), re, ConfigReader::ReadValue(), and Module::ServerInstance. Referenced by ModuleFilterPCRE(). |
|
||||||||||||||||
|
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 169 of file m_filter_pcre.cpp. References InspIRCd::Config, ConvToStr(), FilterBase::exemptfromfilter, filters, User::nick, Module::ServerInstance, and ServerConfig::ServerName. |
|
||||||||||||
|
Implements FilterBase. Definition at line 102 of file m_filter_pcre.cpp. References filters, and FilterBase::SendFilter(). |
|
|
Definition at line 50 of file m_filter_pcre.cpp. Referenced by AddFilter(), and OnRehash(). |
|
|
Definition at line 49 of file m_filter_pcre.cpp. Referenced by AddFilter(), and OnRehash(). |
|
|
Definition at line 47 of file m_filter_pcre.cpp. Referenced by AddFilter(), DeleteFilter(), FilterMatch(), OnRehash(), OnStats(), and SyncFilters(). |
|
|
Definition at line 51 of file m_filter_pcre.cpp. Referenced by FilterMatch(). |
|
|
Definition at line 48 of file m_filter_pcre.cpp. Referenced by AddFilter(), and OnRehash(). |