mirror of
https://github.com/anope/anope.git
synced 2026-07-06 17:23:13 +02:00
Added 4 new events for (un)setting modes on channels and users
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2583 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -923,6 +923,30 @@ class CoreExport Module
|
||||
*/
|
||||
virtual void OnInsertHostCore(HostCore *hc) { }
|
||||
|
||||
/** Called when a mode is set on a channel
|
||||
* @param c The channel
|
||||
* @param Name The mode name
|
||||
*/
|
||||
virtual void OnChannelModeSet(Channel *c, ChannelModeName Name) { }
|
||||
|
||||
/** Called when a mode is unset on a channel
|
||||
* @param c The channel
|
||||
* @param Name The mode name
|
||||
*/
|
||||
virtual void OnChannelModeUnset(Channel *c, ChannelModeName Name) { }
|
||||
|
||||
/** Called when a mode is set on a user
|
||||
* @param u The user
|
||||
* @param Name The mode name
|
||||
*/
|
||||
virtual void OnUserModeSet(User *u, UserModeName Name) { }
|
||||
|
||||
/** Called when a mode is unset from a user
|
||||
* @param u The user
|
||||
* @param Name The mode name
|
||||
*/
|
||||
virtual void OnUserModeUnset(User *u, UserModeName Name) { }
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -960,6 +984,7 @@ enum Implementation
|
||||
I_OnPreDatabaseExpire, I_OnDatabaseExpire, I_OnPreRestart, I_OnRestart, I_OnPreShutdown, I_OnShutdown, I_OnSignal,
|
||||
I_OnServerQuit, I_OnTopicUpdated,
|
||||
I_OnEncrypt, I_OnEncryptInPlace, I_OnEncryptCheckLen, I_OnDecrypt, I_OnCheckPassword,
|
||||
I_OnChannelModeSet, I_OnChannelModeUnset, I_OnUserModeSet, I_OnUserModeUnset,
|
||||
I_END
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user