diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
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; } } |