diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/channels.h | 6 | ||||
-rw-r--r-- | include/parammode.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/channels.h b/include/channels.h index 22a373a0f..d346db8ef 100644 --- a/include/channels.h +++ b/include/channels.h @@ -248,11 +248,11 @@ class CoreExport Channel : public Extensible void Write(ClientProtocol::EventProvider& protoevprov, ClientProtocol::Message& msg, char status = 0, const CUList& except_list = CUList()); /** Return the channel's modes with parameters. - * @param showkey If this is set to true, the actual key is shown, - * otherwise it is replaced with '<KEY>' + * @param showsecret If this is set to true, the value of secret parameters + * are shown, otherwise they are replaced with '<name>'. * @return The channel mode string */ - const char* ChanModes(bool showkey); + const char* ChanModes(bool showsecret); /** Get the value of a users prefix on this channel. * @param user The user to look up diff --git a/include/parammode.h b/include/parammode.h index c79d11b6b..313981185 100644 --- a/include/parammode.h +++ b/include/parammode.h @@ -31,6 +31,7 @@ class CoreExport ParamModeBase : public ModeHandler ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string& param, bool adding) CXX11_OVERRIDE; // Does nothing by default + virtual bool IsParameterSecret() { return false; } virtual void OnUnset(User* source, Channel* chan) { } virtual ModeAction OnSet(User* source, Channel* chan, std::string& param) = 0; virtual void GetParameter(Channel* chan, std::string& out) = 0; |