From cf32c306898ee24d19536fe6682ce461afa739cb Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 29 Jan 2006 23:41:38 +0000 Subject: Fix to send 403 on invalid channel name git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2980 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_join.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cmd_join.cpp b/src/cmd_join.cpp index 148de057e..b1478392d 100644 --- a/src/cmd_join.cpp +++ b/src/cmd_join.cpp @@ -54,6 +54,10 @@ void cmd_join::Handle (char **parameters, int pcnt, userrec *user) { Ptr = add_channel(user,parameters[0],parameters[1],false); } + else + { + WriteServ(user->fd,"403 %s %s :Invalid channel name",user->nick, parameters[0]); + } } -- cgit v1.2.3