summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
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;
+ }
}
}
}