From 03c5ffbdc3850fee20887885bcddd9d0738c8537 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 30 Dec 2016 18:53:04 +0100 Subject: Make ModeHandler::GetUserParameter() const, accept const User --- include/builtinmodes.h | 2 +- include/mode.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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. -- cgit v1.2.3