|
|||
|
|||
|


Public Member Functions | |
| ModuleCustomTitle (InspIRCd *Me) | |
| int | OnWhoisLine (User *user, User *dest, int &numeric, std::string &text) |
| Called whenever a line of WHOIS output is sent to a user. | |
| virtual void | OnSyncUserMetaData (User *user, Module *proto, void *opaque, const std::string &extname, bool displayable) |
| virtual void | OnUserQuit (User *user, const std::string &message, const std::string &oper_message) |
| Called when a user quits. | |
| virtual void | OnCleanup (int target_type, void *item) |
| Called before your module is unloaded to clean up Extensibles. | |
| 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 | ~ModuleCustomTitle () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
Private Attributes | |
| CommandTitle * | mycommand |
Definition at line 102 of file m_customtitle.cpp.
|
|
Definition at line 107 of file m_customtitle.cpp. References InspIRCd::AddCommand(), ModuleManager::Attach(), I_OnCleanup, I_OnDecodeMetaData, I_OnSyncUserMetaData, I_OnUserQuit, I_OnWhoisLine, InspIRCd::Modules, mycommand, and Module::ServerInstance. |
|
|
Definition at line 204 of file m_customtitle.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 208 of file m_customtitle.cpp. References API_VERSION, VF_COMMON, and VF_VENDOR. |
|
||||||||||||
|
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 167 of file m_customtitle.cpp. References Extensible::GetExt(), Extensible::Shrink(), and TYPE_USER. |
|
||||||||||||||||||||
|
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 188 of file m_customtitle.cpp. References Extensible::Extend(), Extensible::GetExt(), and TYPE_USER. |
|
||||||||||||||||||||||||
|
Reimplemented from Module. Definition at line 139 of file m_customtitle.cpp. References Extensible::GetExt(), Module::ProtoSendMetaData(), and TYPE_USER. |
|
||||||||||||||||
|
Called when a user quits. The details of the exiting user are available to you in the parameter User *user This event is only called when the user is fully registered when they quit. To catch raw disconnections, use the OnUserDisconnect method.
Reimplemented from Module. Definition at line 156 of file m_customtitle.cpp. References Extensible::GetExt(), and Extensible::Shrink(). |
|
||||||||||||||||||||
|
Called whenever a line of WHOIS output is sent to a user. You may change the numeric and the text of the output by changing the values numeric and text, but you cannot change the user the numeric is sent to. You may however change the user's User values.
Reimplemented from Module. Definition at line 118 of file m_customtitle.cpp. References Extensible::GetExt(), User::nick, InspIRCd::SendWhoisLine(), and Module::ServerInstance. |
|
|
Definition at line 104 of file m_customtitle.cpp. Referenced by ModuleCustomTitle(). |