diff options
-rw-r--r-- | src/channels.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 9eee987f1..9f1eafd0c 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -202,7 +202,12 @@ void Channel::SetDefaultModes() if (mode) { if (mode->GetNumParams(true)) + { list.GetToken(parameter); + // If the parameter begins with a ':' then it's invalid + if (parameter.c_str()[0] == ':') + continue; + } else parameter.clear(); |