diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-08 13:51:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-08 13:51:07 +0000 |
commit | a14617e12c1dbd0b7e1a176779b0a4f04aa96fb2 (patch) | |
tree | d49ef20c141672707d43198e9d3cee8b33734995 /src/inspircd.cpp | |
parent | b4a59f316ee9d85156fbd1e289000b1ed23b2331 (diff) |
Fixed protocol violation bugs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@453 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index c5fa963c3..9cc69a68b 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -4722,7 +4722,7 @@ void process_command(userrec *user, char* cmd) // another phidjit bug... if (total_params > 126) { - kill_link(user,"Protocol violation"); + kill_link(user,"Protocol violation (1)"); return; } @@ -4794,7 +4794,7 @@ void process_command(userrec *user, char* cmd) if (strlen(command)>MAXCOMMAND) { - kill_link(user,"Protocol violation"); + kill_link(user,"Protocol violation (2)"); return; } @@ -4804,9 +4804,9 @@ void process_command(userrec *user, char* cmd) { if (((command[x] < '0') || (command[x]> '9')) && (command[x] != '-')) { - if (!strchr("@!\"$%^&*(){}[]_-=+;:'#~,.<>/?\\|`",command[x])) + if (strchr("@!\"$%^&*(){}[]_-=+;:'#~,.<>/?\\|`",command[x])) { - kill_link(user,"Protocol violation"); + kill_link(user,"Protocol violation (3)"); return; } } |