mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2014
Posts: 308
TECO Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 308
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)
Joined: Dec 2015
Posts: 148
Vogon poet
Offline
Vogon poet
Joined: Dec 2015
Posts: 148
$chan(#).mode returns the modes and their parameters (key, limit...).

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

Joined: Jul 2014
Posts: 308
TECO Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Jul 2014
Posts: 308
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)

Link Copied to Clipboard