summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
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);