[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
who-stacking
- To: ircd-users@xxxxxxx
- Subject: who-stacking
- From: "Axel Franke" <eule@xxxxxxxxxxxxxxx>
- Date: Tue, 31 Oct 2000 21:48:17 +0000
- Comments: Authenticated sender is <eule@berlin.snafu.de>
- Delivered-to: ircd-users-out@irc.org
- Delivered-to: ircd-users@irc.org
Hi all
I wonders, the server allow a stacking for many commands, for
example:
MODE #ch1,#ch2,#ch3,#ch4,#ch5,#ch6,#ch7,#ch8,#ch9,#ch10,#ch11 +b
For the who-command this works also, but it seems this is limited for
10 channels?
The explain for this is simple, it exists a
#define MAXPENALTY 10
and in m_who a if penalty < MAXPENALTY
The problem with this is, it can happens a serveradmin change
#define MAXCHANNELSPERUSER 10 for example to 20
and a user joined more than 10 channels, in this case the user can't
read the wholist for all own channels with only one command.
Therefore I suggest this patch see the attachment.
regards,
Axel Franke
diff -ur irc2.10.3p1/ircd/s_user.c ircdneu/ircd/s_user.c
--- irc2.10.3p1/ircd/s_user.c Wed Jun 7 00:35:12 2000
+++ ircdneu/ircd/s_user.c Tue Oct 31 20:44:19 2000
@@ -1473,7 +1473,7 @@
}
for (p = NULL, mask = strtoken(&p, parv[1], ",");
- mask && penalty < MAXPENALTY;
+ mask && penalty < MAXCHANNELSPERUSER;
mask = strtoken(&p, NULL, ","))
{
channame = NULL;