From 1b9ef4d26859ed0d7b54b3d11f172e6fabafa824 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 10 Sep 2006 05:16:26 +0000 Subject: [PATCH] --- plugins/include/string.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/include/string.inc b/plugins/include/string.inc index 20863d06..d8408d25 100755 --- a/plugins/include/string.inc +++ b/plugins/include/string.inc @@ -221,11 +221,15 @@ stock remove_filepath(szFilePath[], szFile[], pMax) stock replace_all(string[], len, what[], with[]) { new withlen, charnum = 0; + new total = 0; withlen = strlen(with); while (replace(string[charnum], len, what, with) != 0) { charnum += contain(string[charnum], with) + withlen; + total++; } + + return total; }