From 1253c70e0682fa1490c99c3d2869049a0e3fa2e0 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 21 Apr 2014 17:23:09 -0400 Subject: Constify message source for OnChannelMode(Un)Set --- include/channels.h | 4 ++-- include/event.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') 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 ¶m = "", bool enforce_mlock = true); + void SetModeInternal(const MessageSource &source, ChannelMode *cm, const Anope::string ¶m = "", 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 ¶m = "", bool enforce_mlock = true); + void RemoveModeInternal(const MessageSource &source, ChannelMode *cm, const Anope::string ¶m = "", 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 ¶m) anope_abstract; + virtual EventReturn OnChannelModeSet(Channel *c, const MessageSource &setter, ChannelMode *mode, const Anope::string ¶m) anope_abstract; }; extern CoreExport EventHandlers 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 ¶m) anope_abstract; + virtual EventReturn OnChannelModeUnset(Channel *c, const MessageSource &setter, ChannelMode *mode, const Anope::string ¶m) anope_abstract; }; extern CoreExport EventHandlers OnChannelModeUnset; -- cgit