$modefirst

From Scriptwiki
Revision as of 01:52, 8 August 2008 by Aca20031 (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

$modefirst

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

$modelast