|
|||
|
|||
|


Public Member Functions | |
| ModuleCgiIRC (InspIRCd *Me) | |
| virtual void | Prioritize () |
| virtual void | OnRehash (User *user, const std::string ¶meter) |
| Called on rehash. | |
| virtual void | OnCleanup (int target_type, void *item) |
| Called before your module is unloaded to clean up Extensibles. | |
| virtual void | OnSyncUserMetaData (User *user, Module *proto, void *opaque, const std::string &extname, bool displayable) |
| virtual void | OnDecodeMetaData (int target_type, void *target, const std::string &extname, const std::string &extdata) |
| Allows module data, sent via ProtoSendMetaData, to be decoded again by a receiving module. | |
| virtual void | OnUserDisconnect (User *user) |
| Called whenever a user's socket is closed. | |
| virtual int | OnUserRegister (User *user) |
| Called whenever a user is about to register their connection (e.g. | |
| virtual void | OnUserConnect (User *user) |
| Called when a user connects. | |
| bool | CheckPass (User *user) |
| bool | CheckIdent (User *user) |
| bool | IsValidHost (const std::string &host) |
| bool | IsValidIP (const std::string &ip) |
| bool | HexToInt (int &out, const char *in) |
| virtual | ~ModuleCgiIRC () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
Private Attributes | |
| CommandWebirc * | mycommand |
| bool | NotifyOpers |
| CGIHostlist | Hosts |
Definition at line 137 of file m_cgiirc.cpp.
|
|
Definition at line 143 of file m_cgiirc.cpp. References InspIRCd::AddCommand(), ModuleManager::Attach(), Hosts, I_OnCleanup, I_OnDecodeMetaData, I_OnRehash, I_OnSyncUserMetaData, I_OnUserConnect, I_OnUserDisconnect, I_OnUserRegister, InspIRCd::Modules, mycommand, NotifyOpers, OnRehash(), and Module::ServerInstance. |
|
|
Definition at line 503 of file m_cgiirc.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 507 of file m_cgiirc.cpp. References API_VERSION, and VF_VENDOR. |
|
||||||||||||
|
Definition at line 489 of file m_cgiirc.cpp. Referenced by CheckIdent(). |
|
|
Definition at line 433 of file m_cgiirc.cpp. Referenced by CheckPass(). |
|
|
Definition at line 454 of file m_cgiirc.cpp. |
|
||||||||||||
|
Called before your module is unloaded to clean up Extensibles. This method is called once for every user and channel on the network, so that when your module unloads it may clear up any remaining data in the form of Extensibles added using Extensible::Extend(). If the target_type variable is TYPE_USER, then void* item refers to a User*, otherwise it refers to a Channel*.
Reimplemented from Module. Definition at line 209 of file m_cgiirc.cpp. References Extensible::GetExt(), Extensible::Shrink(), and TYPE_USER. Referenced by OnUserDisconnect(). |
|
||||||||||||||||||||
|
Allows module data, sent via ProtoSendMetaData, to be decoded again by a receiving module. Please see src/modules/m_swhois.cpp for a working example of how to use this method call.
Reimplemented from Module. Definition at line 244 of file m_cgiirc.cpp. References Extensible::Extend(), Extensible::GetExt(), and TYPE_USER. |
|
||||||||||||
|
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 160 of file m_cgiirc.cpp. References Conf, CONF_VALUE_NOT_FOUND, DEFAULT, ConfigReader::Enumerate(), ConfigReader::GetError(), Hosts, IDENT, INVALID, LogManager::Log(), InspIRCd::Logs, NotifyOpers, PASS, PASSFIRST, ConfigReader::ReadFlag(), ConfigReader::ReadValue(), Module::ServerInstance, and WEBIRC. Referenced by ModuleCgiIRC(). |
|
||||||||||||||||||||||||
|
Reimplemented from Module. Definition at line 231 of file m_cgiirc.cpp. References Extensible::GetExt(), Module::ProtoSendMetaData(), and TYPE_USER. |
|
|
Called when a user connects. The details of the connecting user are available to you in the parameter User *user
Reimplemented from Module. Definition at line 302 of file m_cgiirc.cpp. References UserManager::AddGlobalClone(), UserManager::AddLocalClone(), User::dhost, Extensible::GetExt(), User::host, User::InvalidateCache(), UserManager::RemoveCloneCounts(), Module::ServerInstance, Extensible::Shrink(), and InspIRCd::Users. |
|
|
Called whenever a user's socket is closed. The details of the exiting user are available to you in the parameter User *user This event is called for all users, registered or not, as a cleanup method for modules which might assign resources to user, such as dns lookups, objects and sockets.
Reimplemented from Module. Definition at line 257 of file m_cgiirc.cpp. References OnCleanup(), and TYPE_USER. |
|
|
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 263 of file m_cgiirc.cpp. References CheckIdent(), User::CheckLines(), CheckPass(), User::GetIPString(), User::host, Hosts, IDENT, IDENTFIRST, InspIRCd::Match(), InspIRCd::MatchCIDR(), PASS, PASSFIRST, and WEBIRC. |
|
|
Reimplemented from Module. Definition at line 155 of file m_cgiirc.cpp. References I_OnUserConnect, InspIRCd::Modules, PRIO_FIRST, Module::ServerInstance, and ModuleManager::SetPriority(). |
|
|
Definition at line 141 of file m_cgiirc.cpp. Referenced by ModuleCgiIRC(), OnRehash(), and OnUserRegister(). |
|
|
Definition at line 139 of file m_cgiirc.cpp. Referenced by ModuleCgiIRC(). |
|
|
Definition at line 140 of file m_cgiirc.cpp. Referenced by CheckIdent(), CheckPass(), ModuleCgiIRC(), and OnRehash(). |