Difference between revisions of "$mode"

From Scriptwiki
Jump to: navigation, search
 
m (# -> $chan)
 
Line 8: Line 8:
 
==Examples==
 
==Examples==
 
  on *:[[on op|OP]]:#: {
 
  on *:[[on op|OP]]:#: {
   [[echo]] [[#]] $mode(0).op people were OPed.
+
   [[echo]] [[$chan|#]] $mode(0).op people were OPed.
 
  }
 
  }
  

Latest revision as of 19:17, 11 May 2008

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