summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 01:12:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-08 01:12:02 +0000
commitd6818a9f56da7bdb1f0bcd87c5c757897d1dc7ef (patch)
tree7f3fff268b21cbc962a7a63248e4eb31d71fa911
parent98ea4960df5b0fc4956143348ec1bbfb5380b363 (diff)
Proper fix for comma seperated lists
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@443 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/InspIRCd.layout14
-rw-r--r--src/inspircd.cpp5
2 files changed, 12 insertions, 7 deletions
diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout
index c59b52571..8b3fba399 100644
--- a/src/InspIRCd.layout
+++ b/src/InspIRCd.layout
@@ -1,5 +1,5 @@
[Editors]
-Focused=-1
+Focused=1
Order=7,3,2,6,25,24,4,5,-1,1,0
[Editor_0]
@@ -12,11 +12,11 @@ LeftChar=1
[Editor_1]
Open=1
-Top=0
-CursorCol=1
-CursorRow=1
-TopLine=1
-LeftChar=1
+Top=1
+CursorCol=91
+CursorRow=2991
+TopLine=2957
+LeftChar=11
[Editor_2]
Open=1
@@ -224,7 +224,7 @@ TopLine=1
LeftChar=1
[Editor_28]
Open=1
-Top=1
+Top=0
CursorCol=1
CursorRow=24
TopLine=5
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);