summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd_join.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd_join.cpp b/src/cmd_join.cpp
index b1478392d..883f35213 100644
--- a/src/cmd_join.cpp
+++ b/src/cmd_join.cpp
@@ -50,7 +50,8 @@ void cmd_join::Handle (char **parameters, int pcnt, userrec *user)
if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,0,1))
return;
- if (parameters[0][0] == '#')
+
+ if (IsValidChannelName(parameters[0]))
{
Ptr = add_channel(user,parameters[0],parameters[1],false);
}