A simple away system, nothing to fancy, allows you to use diff formats
you can type the commands but i suggest using menu controls provided. to type commands, use /daway to go away and /dback to come back. within the code below shows diff formats of using this and the two switches -m and -a
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;SETTINGS
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;This is set to go silent away across all servers with the message "going away" by default
;hense if you want this, theres no need for any switches or message
;SWITCHES
; "m" == message active or all server ( if you want to go to active server,then add switch below)
; "a" == active server
;YOU CAN TYPE THESE COMMANDS ARE USE THE MENU CONTROLS PROVIDED
;CONTROLS CAN BE FOUND ON RIGHT CLICK ON CHANNEL,STATUS,NICKLIST AND THE MENUBAR PULLDOWN
;default usage
;USAGE: /daway
;USAGE: /dback
;if you want your own message
;USAGE:/daway <message>
;USAGE:/dback
;if you wish to go silently away on active server, use this format
;USAGE: /daway -a <message>
;USAGE: /dback -a
;if you wish to msg all channels and message across all servers,use this format
;USAGE: /daway -m <message>
;USAGE: /dback -m
;if you wish to msg all channels on active server, then use this format
;USAGE: /daway -ma <message>
;USAGE: /dback -ma
;USAGE: /daway -am <message>
;USAGE: /dback -am
alias daway {
var %switches = $1
if ( %switches == $null ) { set %message $1 }
else { set %message $2 }
if ( %message == $null ) { set %message going away }
if ( %switches == -a ) { away %message }
elseif ( %switches == $null ) { scon -at1 away %message }
elseif ( %switches == -ma ) {
away %message
amsg $+(AWAY:,$chr(32),%message)
}
elseif ( %switches == -am ) {
away %message
amsg $+(AWAY:,$chr(32),%message)
}
elseif ( %switches == -m ) {
scon -at1 away mes
scon -at1 amsg $+(AWAY:,$chr(32),%message)
}
}
alias dback {
var %switches = $1
if ( %switches == -a ) { away }
elseif ( %switches == $null ) { scon -at1 away }
elseif ( %switches == -ma ) {
away
amsg $+(BACK FROM:,$chr(32),%message) :: Away For: $duration($awaytime)
unset %message
}
elseif ( %switches == -am ) {
away
amsg $+(BACK FROM:,$chr(32),%message) :: Away For: $duration($awaytime)
unset %message
}
elseif ( %switches == -m ) {
scon -at1 away
scon -at1 amsg $+(BACK FROM:,$chr(32),%message) :: Away For: $duration($awaytime)
unset %message
}
}
;menu controls
menu menubar,channel,status,nicklist {
Simple Away
.Away
..Silent/All: daway $$?="Enter Message"
..Silent/Active: daway -a $$?="Enter Message"
..Msg/All: daway -m $$?="Enter Message"
..Msg/Active: daway -ma $$?="Enter Message"
..
.Back
..Silent/All: dback
..Silent/Active: dback -a
..Msg/All: dback -m
..Msg/Active: dback -ma