diff options
| author | 2019-01-28 17:15:25 +0000 | |
|---|---|---|
| committer | 2019-01-28 17:26:15 +0000 | |
| commit | 18678c6a22f72152b7dacc356c791868b4e170c4 (patch) | |
| tree | aad7574c59933a4ef518b9c819cab274ab09c00e /src/channels.cpp | |
| parent | Fix 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.cpp | 6 |
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 { |
