From b4bab98540cbf6be02e278949ec48413c5085103 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 8 Apr 2004 01:50:01 +0000 Subject: More characters allowed in command field requested by phidjit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@447 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 983f10a06..45337f40e 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -4803,8 +4803,11 @@ void process_command(userrec *user, char* cmd) { if (((command[x] < '0') || (command[x]> '9')) && (command[x] != '-')) { - kill_link(user,"Protocol violation"); - return; + if (!strchr("@!\"$%^&*(){}[]_-=+;:'#~,.<>/?\|`",command[x])) + { + kill_link(user,"Protocol violation"); + return; + } } } } -- cgit v1.2.3