$isid

From Scriptwiki
Revision as of 09:15, 29 June 2007 by Cail (talk | contribs) (added to category custom identifiers)

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

Returns $true if the alias was called as an identifer, otherwise will return $false.

$isid

Example

alias chans {
  if (!$isid) { echo $color(info) -ag Can not call /chans, this alias must be called like $chans }
  var %i = $chan(0)
  while (%i) {
    var %chans = $addtok(%chans,$chan(%i),44)
    dec %i
  }
  return %chans
}