diff options
author | Adam <Adam@anope.org> | 2013-08-25 21:33:52 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-08-25 21:33:52 -0400 |
commit | 714a4a3004062b3998d5ddd8518768ac87d9a7dd (patch) | |
tree | 1fb0bcd9c5c998dc0084032f2c519962bed869d6 /modules/commands/cs_mode.cpp | |
parent | 34826f71c78ea9ba3ae0613fb701c1b15073b58f (diff) |
Remove unnecesary mlock code in cs_mode, change mode set events to never bounce modes set by bots or servers, as it was possible to get modules to fight with each other
Diffstat (limited to 'modules/commands/cs_mode.cpp')
-rw-r--r-- | modules/commands/cs_mode.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index 7bbd2cdde..f3520dfec 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -913,36 +913,6 @@ class CSMode : public Module } } - EventReturn OnChannelModeSet(Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string ¶m) anope_override - { - if (!c->ci) - return EVENT_CONTINUE; - - ModeLocks *ml = modelocks.Get(c->ci); - if (!ml) - return EVENT_CONTINUE; - - if (ml->HasMLock(mode, param, false)) - c->RemoveMode(c->ci->WhoSends(), mode, param); - - return EVENT_CONTINUE; - } - - EventReturn OnChannelModeUnset(Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string ¶m) anope_override - { - if (!c->ci) - return EVENT_CONTINUE; - - ModeLocks *ml = modelocks.Get(c->ci); - if (!ml) - return EVENT_CONTINUE; - - if (ml->HasMLock(mode, param, true)) - c->SetMode(c->ci->WhoSends(), mode, param); - - return EVENT_CONTINUE; - } - void OnCreateChan(ChannelInfo *ci) anope_override { ModeLocks *ml = modelocks.Require(ci); |