summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-14 21:30:38 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-14 21:30:38 +0000
commit525dfe12e634bf575c3a090f45271861da8d7bd0 (patch)
tree9cb6c21978454bd90e86007012eb51fe70dcccb0 /src/core
parent0d6fa568ecb57105561c669c936d23018b70bfe2 (diff)
Added param arg to ChannelModeSet/Unset events, and fixed it to not ignore status and list modes
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2758 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rw-r--r--src/core/os_defcon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/os_defcon.c b/src/core/os_defcon.c
index e9583adfc..fdb2d236e 100644
--- a/src/core/os_defcon.c
+++ b/src/core/os_defcon.c
@@ -180,13 +180,13 @@ class OSDEFCON : public Module
return EVENT_CONTINUE;
}
- EventReturn OnChannelModeSet(Channel *c, ChannelModeName Name)
+ EventReturn OnChannelModeSet(Channel *c, ChannelModeName Name, const std::string &param)
{
ChannelMode *cm = ModeManager::FindChannelModeByName(Name);
if (CheckDefCon(DEFCON_FORCE_CHAN_MODES) && cm && DefConModesOff.HasFlag(Name))
{
- c->RemoveMode(findbot(Config.s_OperServ), Name);
+ c->RemoveMode(findbot(Config.s_OperServ), Name, param);
return EVENT_STOP;
}
@@ -194,7 +194,7 @@ class OSDEFCON : public Module
return EVENT_CONTINUE;
}
- EventReturn OnChannelModeUnset(Channel *c, ChannelModeName Name)
+ EventReturn OnChannelModeUnset(Channel *c, ChannelModeName Name, const std::string &)
{
ChannelMode *cm = ModeManager::FindChannelModeByName(Name);