mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2013
Posts: 2
R
Ryon Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: Aug 2013
Posts: 2
This post discusses the lack of +L support in mIRC, but it was never formally requested.

https://forums.mirc.com/ubbthreads.php/topics/230583/chan_mode


It would be superb if we could avoid requiring a raw event to get the value of this mode. I suggest that we have the following as the property to retrieve the value of +L:

$chan($chan).linked

Joined: Feb 2011
Posts: 451
K
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 451
UnrealIRCd: http://www.unrealircd.com/files/docs/unreal32docs.html#userchannelmodes
InspIRCd: http://wiki.inspircd.org/2.0/Channel_Modes (Same for 1.2)
charybdis: http://www.stack.nl/~jilles/irc/charybdis-oper-guide/cmodes.htm#AEN226
bahamut: http://docs.dal.net/docs/modes.html#2.9


It seems UnrealIRCd/InspIRCd could benefit from this, but bahamut does not use +L and charybdis uses it for larger ban/exempt/invite lists, so those two ircds would not have a value for +L.


Your +L would be a +f in charybdis http://www.stack.nl/~jilles/irc/charybdis-oper-guide/cmodes.htm#AEN188

Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
It's more a bug than a feature, $chan($chan).mode has +L and +f of unreal but without their parameters (defined correctly in raw 005). But perhaps we could just have a property .mode<mode> to check if a mode is set, it would return "+<mode> [param]" with the parameter being optional depending on the context; "$chan($chan).modef" for +f for example.
If a mode (+L) doesn't mean the same everywhere, that would allow scripters to check for any mode according to the server they are on.
I don't think $chan($chan).mode should exclude the parameters of the modes it doesn't recognize anyway, or that it should include the ones it recognizes.

Last edited by Wims; 21/08/13 08:33 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Aug 2013
Posts: 2
R
Ryon Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: Aug 2013
Posts: 2
Originally Posted By: Wims
It's more a bug than a feature, $chan($chan).mode has +L and +f of unreal but without their parameters (defined correctly in raw 005). But perhaps we could just have a property .mode<mode> to check if a mode is set, it would return "+<mode> [param]" with the parameter being optional depending on the context; "$chan($chan).modef" for +f for example.
If a mode (+L) doesn't mean the same everywhere, that would allow scripters to check for any mode according to the server they are on.
I don't think $chan($chan).mode should exclude the parameters of the modes it doesn't recognize anyway, or that it should include the ones it recognizes.


I agree. A variation of this that could agreed upon would be nice. I feel that we could either use .mode<mode> property or perhaps add an entirely new identifier. Something similar to the following would be nice:

$mode($chan, 0) = return all modes, with mode parameters
$mode($chan, 1) = return the first mode with associated parameter (if applicable)
$mode($chan, 1-3) = return the first three modes


EDIT: Wims' suggestion would be preferable in my opinion unless $mode could be thoroughly planned out. It would obviously need some features that would make it worth adding a new identifier.

Last edited by Ryon; 29/08/13 06:27 PM.

Link Copied to Clipboard