|
|||
|
|||
|


Public Member Functions | |
| ModuleConnFlood (InspIRCd *Me) | |
| virtual | ~ModuleConnFlood () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
| void | InitConf () |
| virtual int | OnUserRegister (User *user) |
| Called whenever a user is about to register their connection (e.g. | |
| virtual void | OnRehash (User *user, const std::string ¶meter) |
| Called on rehash. | |
Private Attributes | |
| int | seconds |
| int | maxconns |
| int | timeout |
| int | boot_wait |
| time_t | first |
| std::string | quitmsg |
| ConfigReader * | conf |
Definition at line 20 of file m_connflood.cpp.
|
|
Definition at line 31 of file m_connflood.cpp. References ModuleManager::Attach(), I_OnRehash, I_OnUserRegister, InitConf(), InspIRCd::Modules, and Module::ServerInstance. |
|
|
Definition at line 39 of file m_connflood.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 43 of file m_connflood.cpp. References API_VERSION, and VF_VENDOR. |
|
|
Definition at line 48 of file m_connflood.cpp. References boot_wait, conf, first, maxconns, quitmsg, ConfigReader::ReadInteger(), ConfigReader::ReadValue(), seconds, Module::ServerInstance, InspIRCd::Time(), and timeout. Referenced by ModuleConnFlood(), and OnRehash(). |
|
||||||||||||
|
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 109 of file m_connflood.cpp. References InitConf(). |
|
|
Called whenever a user is about to register their connection (e.g. before the user is sent the MOTD etc). Modules can use this method if they are performing a function which must be done before the actual connection is completed (e.g. ident lookups, dnsbl lookups, etc). Note that you should NOT delete the user record here by causing a disconnection! Use OnUserConnect for that instead.
Reimplemented from Module. Definition at line 64 of file m_connflood.cpp. References boot_wait, conns, first, maxconns, quitmsg, UserManager::QuitUser(), seconds, Module::ServerInstance, InspIRCd::SNO, InspIRCd::startup_time, throttled, InspIRCd::Time(), timeout, InspIRCd::Users, and SnomaskManager::WriteToSnoMask(). |
|
|
Definition at line 23 of file m_connflood.cpp. Referenced by InitConf(), and OnUserRegister(). |
|
|
Definition at line 27 of file m_connflood.cpp. Referenced by InitConf(). |
|
|
Definition at line 24 of file m_connflood.cpp. Referenced by InitConf(), and OnUserRegister(). |
|
|
Definition at line 23 of file m_connflood.cpp. Referenced by InitConf(), and OnUserRegister(). |
|
|
Definition at line 25 of file m_connflood.cpp. Referenced by InitConf(), and OnUserRegister(). |
|
|
Definition at line 23 of file m_connflood.cpp. Referenced by InitConf(), and OnUserRegister(). |
|
|
Definition at line 23 of file m_connflood.cpp. Referenced by InitConf(), and OnUserRegister(). |