$away: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
No edit summary
 
added example description
Line 6: Line 6:


== Examples ==
== Examples ==
The following creates an alias named awaycheck which will echo if you are away or not.<br \>
Usage: /awaycheck


  [[Alias|alias]] awaycheck {
  [[Alias|alias]] awaycheck {

Revision as of 08:06, 4 September 2005

Returns $true or $false showing if you are marked as away or not

$away
  • It has no parameters or options

Examples

The following creates an alias named awaycheck which will echo if you are away or not.
Usage: /awaycheck

alias awaycheck {
  if ($away == $true) { echo -a I am currently away. }
  else { echo -a I am currently NOT away. }
}

See also

Modifying mIRCs own Away system, $awaymsg and $awaytime.