aboutsummaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2019-01-28 17:15:25 +0000
committerGravatar Peter Powell2019-01-28 17:26:15 +0000
commit18678c6a22f72152b7dacc356c791868b4e170c4 (patch)
treeaad7574c59933a4ef518b9c819cab274ab09c00e /src/channels.cpp
parentFix not checking for server names case insensitively. (diff)
Add ParamMode::IsParameterSecret and remove special casing of keys.
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index e5fd7265e..760b5c4bd 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -436,7 +436,7 @@ void Channel::Write(ClientProtocol::Event& protoev, char status, const CUList& e
}
}
-const char* Channel::ChanModes(bool showkey)
+const char* Channel::ChanModes(bool showsecret)
{
static std::string scratch;
std::string sparam;
@@ -455,9 +455,9 @@ const char* Channel::ChanModes(bool showkey)
if (!pm)
continue;
- if (n == 'k' - 65 && !showkey)
+ if (pm->IsParameterSecret() && !showsecret)
{
- sparam += " <key>";
+ sparam += " <" + pm->name + ">";
}
else
{