summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-13 01:11:26 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-13 01:11:26 +0000
commit628c4b1b6f9bb2e417bd69e6624b3804ed26ecbd (patch)
treedf96375cb5f80606864fda1cf986b05a3313528b
parenta0c2e57896af9bdb7645e028c1cf13e70c5bd200 (diff)
m_join: Use IsValidChannelName()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3183 e03df62e-2008-0410-955e-edbf42e46eb7
-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);
}