diff options
author | Adam <Adam@anope.org> | 2014-04-21 17:23:09 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-04-21 17:23:09 -0400 |
commit | 1253c70e0682fa1490c99c3d2869049a0e3fa2e0 (patch) | |
tree | 0e551e2854bcb4658c912001078b688ac1ad970e /modules/commands/os_defcon.cpp | |
parent | 7286c2b90c0844d978cb498f656b36386b688024 (diff) |
Constify message source for OnChannelMode(Un)Set
Diffstat (limited to 'modules/commands/os_defcon.cpp')
-rw-r--r-- | modules/commands/os_defcon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp index ee3a10d13..29e6638d4 100644 --- a/modules/commands/os_defcon.cpp +++ b/modules/commands/os_defcon.cpp @@ -432,7 +432,7 @@ class OSDefcon : public Module this->ParseModeString(); } - EventReturn OnChannelModeSet(Channel *c, MessageSource &source, ChannelMode *mode, const Anope::string ¶m) override + EventReturn OnChannelModeSet(Channel *c, const MessageSource &source, ChannelMode *mode, const Anope::string ¶m) override { if (DConfig.Check(DEFCON_FORCE_CHAN_MODES) && DConfig.DefConModesOff.count(mode->name) && source.GetUser() && !source.GetBot()) { @@ -444,7 +444,7 @@ class OSDefcon : public Module return EVENT_CONTINUE; } - EventReturn OnChannelModeUnset(Channel *c, MessageSource &source, ChannelMode *mode, const Anope::string &) override + EventReturn OnChannelModeUnset(Channel *c, const MessageSource &source, ChannelMode *mode, const Anope::string &) override { if (DConfig.Check(DEFCON_FORCE_CHAN_MODES) && DConfig.DefConModesOn.count(mode->name) && source.GetUser() && !source.GetBot()) { |