diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-03 21:16:33 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-03 21:16:33 +0000 |
| commit | 2dba060c6a8a290921441ada1586ab43157be893 (patch) | |
| tree | 991892fd67573b3d65cccd8cd8305a5269191443 /include | |
| parent | a7316c17706bccf75ec1150ee3b318410acffbed (diff) | |
Patch from DukePyrolator to include an OnUserNickChange() event to replace EVENT_CHANGE_NICK, also patch from me to have the ratbox protocol module send account data on login and logout.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2254 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h index 8bf3077ad..f08e87015 100644 --- a/include/modules.h +++ b/include/modules.h @@ -506,6 +506,12 @@ class CoreExport Module */ virtual void OnServerConnect(Server *s) { } + /** Called after a user changed the nick + * @param u The user. + * @param oldnick the old nick of the user + */ + virtual void OnUserNickChange(User *u, const char *oldnick) { } + /** Called before a command is due to be executed. * @param u The user executing the command * @param service The service the command is associated with @@ -542,7 +548,7 @@ enum Implementation { I_BEGIN, I_OnUserKicked, I_OnReload, I_OnBotAssign, I_OnBotUnAssign, I_OnUserConnect, I_OnServerConnect, - I_OnPreCommand, I_OnPostCommand, + I_OnPreCommand, I_OnPostCommand, I_OnUserNickChange, I_OnSaveDatabase, I_OnBackupDatabase, I_END }; |
