diff options
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 1e4a8abc3..f0c2d20e6 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -4738,10 +4738,13 @@ void process_command(userrec *user, char* cmd) for (int x = 0; x < strlen(command); x++) { - if ((command[x] < 'A') || (command[x] > 'Z')) + if (((command[x] < 'A') || (command[x] > 'Z')) && (command[x] != '.')) { - kill_link(user,"Protocol violation"); - return; + if (((command[x] < '0') || (command[x]> '9')) && (command[x] != '-')) + { + kill_link(user,"Protocol violation"); + return; + } } } |