summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-06 12:29:27 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-06 12:29:27 +0000
commit59a23e558e2658093a11b0fd8a97559bca2784fd (patch)
tree50b3565c13b342f47c1edf95791e0259a7a0157b /src/inspircd.cpp
parent1a7de41f62ea989f8f5c9fb575b5974c3be93a52 (diff)
Fixed to allow gay scripts like invision to send duff commands (why i do this is beyond me)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@405 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp9
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;
+ }
}
}