mIRC Home    About    Download    Register    News    Help

Print Thread
Erroneous active channel mode using isletter #267063 29/03/20 10:15 PM
Joined: Jul 2014
Posts: 172
TECO Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Jul 2014
Posts: 172
I'm using the following code to create a dialog box to enable/disable the channel mode +c:
Code
.$iif(c isletter $chan(#).mode,$style(3)) &On :mode # +c
.$iif(c !isletter $chan(#).mode,$style(3)) &Off :mode # -c

But mIRC seems to have some issues related to the parsing of the flood parameters (channel mode +f) in UnrealIRCd, which affects my actual code.

When the channel has the following channel flood parameters: +f [5c#M2,5j#R2,4k#K2,15m#m3,2n#N3,5t,1r#d]:8, mIRC wrongly reports that the channel has mode +c which blocks color in UnrealIRCd.
If I change the flood parameters to something like: +f [5j#R2,4k#K2,15m#m3,2n#N3,5t,1r#d]:8, all works as expected and mIRC doesn't wrongly report the channel having channel mode +c.

Any ideas in how to fix this or is this some mIRC related bug in the way it parses channel modes?

Thank you!


TECO
irc.PTirc.org (Co-Admin)
Re: Erroneous active channel mode using isletter [Re: TECO] #267066 30/03/20 08:25 AM
Joined: Dec 2015
Posts: 140
Dazuz Offline
Vogon poet
Offline
Vogon poet
Joined: Dec 2015
Posts: 140
$chan(#).mode returns the modes and their parameters (key, limit...).

Use $gettok($chan(#).mode,1,32) to get the modes only.

Re: Erroneous active channel mode using isletter [Re: Dazuz] #267067 30/03/20 09:50 AM
Joined: Jul 2014
Posts: 172
TECO Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Jul 2014
Posts: 172
Originally Posted by Dazuz
$chan(#).mode returns the modes and their parameters (key, limit...).

Use $gettok($chan(#).mode,1,32) to get the modes only.

Thank you


TECO
irc.PTirc.org (Co-Admin)