diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-08 01:00:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-08 01:00:25 +0000 |
commit | 98ea4960df5b0fc4956143348ec1bbfb5380b363 (patch) | |
tree | 03be911bfec45e67bac72cd669736956b4f5cf4d | |
parent | 4cbb91509431fa68069c8f76202b85290f9f3b87 (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
-rw-r--r-- | src/inspircd.cpp | 7 |
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]) |