From 98ea4960df5b0fc4956143348ec1bbfb5380b363 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 8 Apr 2004 01:00:25 +0000 Subject: 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 --- src/inspircd.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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]) -- cgit v1.2.3