From a14617e12c1dbd0b7e1a176779b0a4f04aa96fb2 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 8 Apr 2004 13:51:07 +0000 Subject: Fixed protocol violation bugs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@453 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/inspircd.cpp') 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; } } -- cgit v1.2.3