# Statusaway, display the away message in the status line. Sets the # STATUS_AWAY variable to to [Away: ]. Uses the variable # MY_AWAY to store the away-message. Catches the ons for being set # away / no longer set as away, so that the message is only displayed # in the statusline when the server thinks you are away. # Source: WizIrc, Written by Wizard # Date: 28-Oct-1995 # Modified: 14-Mar-1996, changed // to ${K}${K} # Set away alias, take care of all the associated settings alias away { if ([$0] == []) { ${K}${K}away ^assign -MY_AWAY # It is possible to load "here" settings here. #load ~/.irc/on_here } { ${K}${K}away $* ^assign MY_AWAY $* # It is possible to load "away" settings here. #load ~/.irc/on_away } } # On away messages on ^305 * { ^set -status_away echo ### $Z No longer set as away. } on ^306 * { ^set status_away [Away: $MY_AWAY] echo ### $Z Set as away: $MY_AWAY }