mIRC Homepage
Posted By: TECO Erroneous active channel mode using isletter - 29/03/20 10:15 PM
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!
$chan(#).mode returns the modes and their parameters (key, limit...).

Use $gettok($chan(#).mode,1,32) to get the modes only.
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
© mIRC Discussion Forums