$mode

From Scriptwiki
Jump to: navigation, search

Returns the Nth nick name affected by a channel mode change. If N=0, returns the total number of affected nicks

$mode(N)[.op|.deop|.ban|.unban|.voice|.devoice|.help|.dehelp]
  • N is a number >= 0. If 0, returns the total number of nicks affected.
  • If you specify a property, $mode contains only the nicks affected by that kind of mode change.

Examples

on *:OP:#: {
 echo # $mode(0).op people were OPed.
}
on *:RAWMODE:#:echo # $mode(0) people were affected by this mode change.

See Also

On rawmode On voice On devoice On help On dehelp On op On deop On ban On unban