1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 13:13:13 +02:00

Chnaged ChannelModeSet/Unset events to be able to block checks such as secureops and mlock, and made it so you can't set a mode already set or unset a mode already unset so the modestacker doesn't send modes it doesn't need to

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2719 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2009-12-29 23:16:10 +00:00
parent df107dac1f
commit 7665af27cd
4 changed files with 27 additions and 15 deletions
+4 -2
View File
@@ -936,14 +936,16 @@ class CoreExport Module
/** Called when a mode is set on a channel
* @param c The channel
* @param Name The mode name
* @return EVENT_STOP to make mlock/secureops etc checks not happen
*/
virtual void OnChannelModeSet(Channel *c, ChannelModeName Name) { }
virtual EventReturn OnChannelModeSet(Channel *c, ChannelModeName Name) { return EVENT_CONTINUE; }
/** Called when a mode is unset on a channel
* @param c The channel
* @param Name The mode name
* @return EVENT_STOP to make mlock/secureops etc checks not happen
*/
virtual void OnChannelModeUnset(Channel *c, ChannelModeName Name) { }
virtual EventReturn OnChannelModeUnset(Channel *c, ChannelModeName Name) { return EVENT_CONTINUE; }
/** Called when a mode is set on a user
* @param u The user