mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 4,149
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
On irc.irchighway.net:
Quote:

[11:21:44] fang.fr.eu.irchighway.net InspIRCd-2.0 BIRSWiorswx ACIMNORSTabcehiklmnopqrstvz Iabehkloqv
[11:21:44] AWAYLEN=200 CASEMAPPING=rfc1459 CHANMODES=Ibe,k,l,ACMNORSTcimnprstz CHANNELLEN=64 CHANTYPES=# CHARSET=ascii ELIST=MU ESILENCE EXCEPTS=e EXTBAN=,ACNORSTUcjmz FNC INVEX=I KICKLEN=255 are supported by this server
[11:21:44] MAP MAXBANS=60 MAXCHANNELS=30 MAXPARA=32 MAXTARGETS=20 MODES=20 NAMESX NETWORK=irchighway NICKLEN=31 PREFIX=(qaohv)~&@%+ SILENCE=32 SSL=87.98.143.109:6697 STARTTLS are supported by this server
[11:21:44] STATUSMSG=~&@%+ TOPICLEN=307 UHNAMES USERIP VBANLIST WALLCHOPS WALLVOICES are supported by this server
$modespl returns 15, but there is MODES=20

Edit: using /parseline to debug a bit shows that it looks like there is an hardcoded limit at 15, passing MODES=14 makes $modespl return 14, but with 16, it returns 15.

Last edited by Wims; 22/12/16 11:12 AM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
Thanks for your bug report. The reason for this is that mIRC applies a sanity check to some server-set values. In this case, 15 modes per line was considered a high enough value at the time. This will be changed in the next version to allow a higher value.

Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
I'd suggest the sanity value be over 30 as I'm currently on a network that allows for 30 modes


I am SReject
My Stuff
Joined: Jul 2006
Posts: 4,149
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
I completely disagree, mIRC, or any IRC client here, should not change these kind of value given by IRC server. I just don't understand why there is a limit on this value, I would like to see this limit removed, not extended.
I don't understand why it's called a sanity check here, what's insane about accepting the value from the IRC server, even if it were super high like 4500? You can call this value non sense, you can easily argu that the IRC server shouldn't be using such a high value etc, but you should accept it.
Extend it to 30 today and tomorrow I'll report that my IRC server use 31 (unless there is a good reason for such a limit that I'm currently missing, of course).


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
Quote:
unless there is a good reason for such a limit that I'm currently missing, of course

I generally try to apply limits/validation/sanity checks on allowed values to be safe. Thanks for your comments everyone.


Link Copied to Clipboard