summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/builtinmodes.h2
-rw-r--r--include/mode.h2
-rw-r--r--src/mode.cpp2
-rw-r--r--src/modes/umode_s.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/builtinmodes.h b/include/builtinmodes.h
index 62ccaf62d..a77734ae3 100644
--- a/include/builtinmodes.h
+++ b/include/builtinmodes.h
@@ -104,7 +104,7 @@ class ModeUserServerNoticeMask : public ModeHandler
* @param user The user whose notice masks to format
* @return The notice mask character sequence
*/
- std::string GetUserParameter(User* user);
+ std::string GetUserParameter(const User* user) const CXX11_OVERRIDE;
};
/** User mode +o
diff --git a/include/mode.h b/include/mode.h
index 35af68685..956b86050 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -241,7 +241,7 @@ class CoreExport ModeHandler : public ServiceProvider
/** For user modes, return the current parameter, if any
*/
- virtual std::string GetUserParameter(User* useor);
+ virtual std::string GetUserParameter(const User* user) const;
/**
* Called when a channel mode change access check for your mode occurs.
diff --git a/src/mode.cpp b/src/mode.cpp
index fec614ab4..22173c189 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -58,7 +58,7 @@ bool ModeHandler::NeedsParam(bool adding) const
return false;
}
-std::string ModeHandler::GetUserParameter(User* user)
+std::string ModeHandler::GetUserParameter(const User* user) const
{
return "";
}
diff --git a/src/modes/umode_s.cpp b/src/modes/umode_s.cpp
index f0fa5e94b..ffad21662 100644
--- a/src/modes/umode_s.cpp
+++ b/src/modes/umode_s.cpp
@@ -50,7 +50,7 @@ ModeAction ModeUserServerNoticeMask::OnModeChange(User* source, User* dest, Chan
return MODEACTION_DENY;
}
-std::string ModeUserServerNoticeMask::GetUserParameter(User* user)
+std::string ModeUserServerNoticeMask::GetUserParameter(const User* user) const
{
std::string ret;
if (!user->IsModeSet(this))