From 66fcfda7ccd68e55a1ed3d0a791220109dd30305 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 1 May 2004 13:45:45 +0000 Subject: Removed protocol violation errors git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@764 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 310ef4043..eb4199f28 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2604,7 +2604,8 @@ void process_command(userrec *user, char* cmd) // another phidjit bug... if (total_params > 126) { - kill_link(user,"Protocol violation (1)"); + //kill_link(user,"Protocol violation (1)"); + WriteServ(user->fd,"421 %s * :Unknown command",user->nick); return; } @@ -2687,7 +2688,8 @@ void process_command(userrec *user, char* cmd) if (strlen(command)>MAXCOMMAND) { - kill_link(user,"Protocol violation (2)"); + //kill_link(user,"Protocol violation (2)"); + WriteServ(user->fd,"421 %s * :Unknown command",user->nick); return; } @@ -2697,9 +2699,10 @@ 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 (3)"); + //kill_link(user,"Protocol violation (3)"); + WriteServ(user->fd,"421 %s * :Unknown command",user->nick); return; } } -- cgit v1.2.3