summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 01:50:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 01:50:01 +0000
commitb4bab98540cbf6be02e278949ec48413c5085103 (patch)
treec7140e2cb32841e22bf0e71cb0957bc78c794fdc /src/inspircd.cpp
parent1ce4e03cba6a9cf4d382e7a760e5811e7fe0f780 (diff)
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
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp7
1 files changed, 5 insertions, 2 deletions
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;
+ }
}
}
}