mIRC Home    About    Download    Register    News    Help

Print Thread
Inconsistency with mode +l in the channel central #242925 21/09/13 03:11 PM
Joined: Jul 2006
Posts: 3,559
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,559
For some reasons, on unrealircd, when you send for example: //mode #channel +l 4294911110, the irc server replies with: <- :Ouims!~Wims@host MODE #channel +l -56186
The titlebar updates fine with that negative number, as well as $chan(#channel).mode, however, the channel central will display the original value used, 4294911110.
If you hit the ok button of the channel central in this situation, mIRC will send -> hades.de.eu.SwiftIRC.net MODE #channel +l 2147483647, that number looks familiar grin

Tested on 7.32

Last edited by Wims; 21/09/13 04:26 PM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Inconsistency with mode +l in the channel central [Re: Wims] #242984 28/09/13 12:41 PM
Joined: Dec 2002
Posts: 4,521
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,521
Thanks this issue has been fixed for the next version. The channel central dialog was processing the limit value as a number (which seemed reasonable) and was performing sanity checking on it to make sure a user entered a valid value/range. However, it should not have been doing this as the client has no idea what the server considers a valid value/range in this case. The next version of mIRC will treat the limit value as plain text and will show exactly what the server has provided.

The issue with the server, where an integer overflow is caused by the invalid value/range you sent, will need to be resolved on the server side.