summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-04-21 17:23:09 -0400
committerAdam <Adam@anope.org>2014-04-21 17:23:09 -0400
commit1253c70e0682fa1490c99c3d2869049a0e3fa2e0 (patch)
tree0e551e2854bcb4658c912001078b688ac1ad970e /include
parent7286c2b90c0844d978cb498f656b36386b688024 (diff)
Constify message source for OnChannelMode(Un)Set
Diffstat (limited to 'include')
-rw-r--r--include/channels.h4
-rw-r--r--include/event.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/channels.h b/include/channels.h
index 69d7ee787..e676bb924 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -147,7 +147,7 @@ class CoreExport Channel : public Base, public Extensible
* @param param The param
* @param enforce_mlock true if mlocks should be enforced, false to override mlock
*/
- void SetModeInternal(MessageSource &source, ChannelMode *cm, const Anope::string &param = "", bool enforce_mlock = true);
+ void SetModeInternal(const MessageSource &source, ChannelMode *cm, const Anope::string &param = "", bool enforce_mlock = true);
/** Remove a mode internally on a channel, this is not sent out to the IRCd
* @param setter The Setter
@@ -155,7 +155,7 @@ class CoreExport Channel : public Base, public Extensible
* @param param The param
* @param enforce_mlock true if mlocks should be enforced, false to override mlock
*/
- void RemoveModeInternal(MessageSource &source, ChannelMode *cm, const Anope::string &param = "", bool enforce_mlock = true);
+ void RemoveModeInternal(const MessageSource &source, ChannelMode *cm, const Anope::string &param = "", bool enforce_mlock = true);
/** Set a mode on a channel
* @param bi The client setting the modes
diff --git a/include/event.h b/include/event.h
index b55559b48..aab854750 100644
--- a/include/event.h
+++ b/include/event.h
@@ -763,7 +763,7 @@ namespace Event
* @param param The mode param, if there is one
* @return EVENT_STOP to make mlock/secureops etc checks not happen
*/
- virtual EventReturn OnChannelModeSet(Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string &param) anope_abstract;
+ virtual EventReturn OnChannelModeSet(Channel *c, const MessageSource &setter, ChannelMode *mode, const Anope::string &param) anope_abstract;
};
extern CoreExport EventHandlers<ChannelModeSet> OnChannelModeSet;
@@ -776,7 +776,7 @@ namespace Event
* @param param The mode param, if there is one
* @return EVENT_STOP to make mlock/secureops etc checks not happen
*/
- virtual EventReturn OnChannelModeUnset(Channel *c, MessageSource &setter, ChannelMode *mode, const Anope::string &param) anope_abstract;
+ virtual EventReturn OnChannelModeUnset(Channel *c, const MessageSource &setter, ChannelMode *mode, const Anope::string &param) anope_abstract;
};
extern CoreExport EventHandlers<ChannelModeUnset> OnChannelModeUnset;