Difference between revisions of "$modelast"

From Scriptwiki
Jump to: navigation, search
 
m
 
Line 13: Line 13:
 
==See Also==
 
==See Also==
 
[[$modefirst]]
 
[[$modefirst]]
 +
 +
[[Category:Remote Identifiers]]

Latest revision as of 01:53, 8 August 2008

Returns $true if this is the last mode to trigger in a string of modes. For use in mode events such as On op.

$modelast

Example

We will make a list of all users voiced by a single mode setting.

on *:VOICE:#: {
  if ($modefirst) { set %voiced $vnick }
  elseif ($modelast) { echo -atg Users voiced: %voiced }
  else { set %voiced $addtok(%voiced,$vnick,32) }
}

See Also

$modefirst