summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 01:00:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 01:00:25 +0000
commit98ea4960df5b0fc4956143348ec1bbfb5380b363 (patch)
tree03be911bfec45e67bac72cd669736956b4f5cf4d /src
parent4cbb91509431fa68069c8f76202b85290f9f3b87 (diff)
Fix to loop_call and comma seperated lists - another phidjit one
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@442 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index f7541f53f..698644630 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -3017,6 +3017,13 @@ int loop_call(handlerfunc fn, char **parameters, int pcnt, userrec *u, int start
}
}
+ if (total > 10)
+ {
+ // limit the total items in a comma seperated list
+ // a phidjit bug... go figure.
+ total = 10;
+ }
+
for (j = 0; j < total; j++)
{
if (blog[j])