summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 01:12:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 01:12:02 +0000
commitd6818a9f56da7bdb1f0bcd87c5c757897d1dc7ef (patch)
tree7f3fff268b21cbc962a7a63248e4eb31d71fa911 /src/inspircd.cpp
parent98ea4960df5b0fc4956143348ec1bbfb5380b363 (diff)
Proper fix for comma seperated lists
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@443 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 698644630..d4095132b 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2986,6 +2986,11 @@ int loop_call(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start
plist[i] = '\0';
strcpy(blog[j++],param);
param = plist+i+1;
+ if (j>20)
+ {
+ WriteServ(user->fd,"407 %s :Too many targets in list, message not delivered.",blog[j-1]);
+ return 1;
+ }
}
}
strcpy(blog[j++],param);