summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-01-28 17:15:25 +0000
committerPeter Powell <petpow@saberuk.com>2019-01-28 17:26:15 +0000
commit18678c6a22f72152b7dacc356c791868b4e170c4 (patch)
treeaad7574c59933a4ef518b9c819cab274ab09c00e /src/coremods
parent4818b1bc1b0dd8560b0c83901aa33ecaf6fb1275 (diff)
Add ParamMode::IsParameterSecret and remove special casing of keys.
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_channel/cmode_k.cpp5
-rw-r--r--src/coremods/core_channel/core_channel.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/coremods/core_channel/cmode_k.cpp b/src/coremods/core_channel/cmode_k.cpp
index 4fc29e04c..acb6813be 100644
--- a/src/coremods/core_channel/cmode_k.cpp
+++ b/src/coremods/core_channel/cmode_k.cpp
@@ -87,3 +87,8 @@ ModeAction ModeChannelKey::OnSet(User* source, Channel* chan, std::string& param
// Dummy function, never called
return MODEACTION_DENY;
}
+
+bool ModeChannelKey::IsParameterSecret()
+{
+ return true;
+} \ No newline at end of file
diff --git a/src/coremods/core_channel/core_channel.h b/src/coremods/core_channel/core_channel.h
index 6e11275df..096db8c0d 100644
--- a/src/coremods/core_channel/core_channel.h
+++ b/src/coremods/core_channel/core_channel.h
@@ -179,6 +179,7 @@ class ModeChannelKey : public ParamMode<ModeChannelKey, LocalStringExt>
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string& parameter, bool adding) CXX11_OVERRIDE;
void SerializeParam(Channel* chan, const std::string* key, std::string& out) ;
ModeAction OnSet(User* source, Channel* chan, std::string& param) CXX11_OVERRIDE;
+ bool IsParameterSecret() CXX11_OVERRIDE;
};
/** Channel mode +l