Two tips regarding the inc %x check:

1) Use isincs instead of isin, as modes are case sensitive (for example, some network might have a channel mode A that takes no parameters)

2) You can make the script more flexible by using $chanmodes and $nickmode instead of a fixed list of 'known' modes.

So, you can replace
Code:
if ($mid($1,%i,1) isin [color:green]beIlLkvhoaq[/color]) { inc %x }
with
Code:
if ($mid($1,%i,1) isin[color:red]cs[/color] [color:green]$deltok($chanmodes,4-,44) $nickmode[/color]) { inc %x }



and
Code:
if ($mid($1,%i,1) isin [color:blue]beIkvhoaq[/color]) { inc %x }
with
Code:
if ($mid($1,%i,1) isin[color:red]cs[/color] [color:blue]$deltok($chanmodes,3-,44) $nickmode[/color]) { inc %x }


$nickmode is an undocumented identifier similar to $prefix except it returns the mode letters instead of the symblos ("ohv" instead of "@%+" for example)

$chanmode is documented but the help file doesn't explain what each comma-separated token is. v5.9 versions.txt, however, does in item #37 (the full list of version changes can be found here).


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com