|
|||
|
|||
|


Public Member Functions | |
| ModuleNickLock (InspIRCd *Me) | |
| virtual | ~ModuleNickLock () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
| virtual int | OnUserPreNick (User *user, const std::string &newnick) |
| Called before any nickchange, local or remote. | |
| virtual void | OnUserQuit (User *user, const std::string &reason, 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. | |
Private Attributes | |
| CommandNicklock * | cmd1 |
| CommandNickunlock * | cmd2 |
| char * | n |
Definition at line 104 of file m_nicklock.cpp.
|
|
Definition at line 110 of file m_nicklock.cpp. References InspIRCd::AddCommand(), ModuleManager::Attach(), cmd1, cmd2, I_OnCleanup, I_OnUserPreNick, I_OnUserQuit, InspIRCd::Modules, and Module::ServerInstance. |
|
|
Definition at line 122 of file m_nicklock.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 126 of file m_nicklock.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 150 of file m_nicklock.cpp. References Extensible::Shrink(), and TYPE_USER. |
|
||||||||||||
|
Called before any nickchange, local or remote. This can be used to implement Q-lines etc. Please note that although you can see remote nickchanges through this function, you should NOT make any changes to the User if the user is a remote user as this may cause a desnyc. check user->server before taking any action (including returning nonzero from the method). If your method returns nonzero, the nickchange is silently forbidden, and it is down to your module to generate some meaninful output.
Reimplemented from Module. Definition at line 132 of file m_nicklock.cpp. References Extensible::GetExt(), n, User::nick, and User::WriteNumeric(). |
|
||||||||||||||||
|
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 145 of file m_nicklock.cpp. References Extensible::Shrink(). |
|
|
Definition at line 106 of file m_nicklock.cpp. Referenced by ModuleNickLock(). |
|
|
Definition at line 107 of file m_nicklock.cpp. Referenced by ModuleNickLock(). |
|
|
Definition at line 108 of file m_nicklock.cpp. Referenced by OnUserPreNick(). |