alias away {
set %areason $1-
set %time $ctime
set %adaryl on
/nick Louisc999|Away
amsg 14I am now 4Away14 Reason4 %areason 14Left at4 $asctime(HH:nn:ss)
}
alias back {
amsg 14I am now 4Back 14from4 %areason 14Gone for4 $duration($calc($ctime - %time))
unset %areason
set %adaryl off
unset %time
/nick Louisc999
}
on *:text:*Louisc999*:#: {
if (%adaryl == off) { HALT }
if (%adaryl == on) {
notice $nick 14 I am currently Away reason4 %areason 14 Left at 4 $asctime(HH:nn:ss) 14Been Gone for4 $duration($calc($ctime - %time))
}
}
alias Shout {
var %a 1
while ($chan(%a)) {
if ($chan(%a) !isin $no.amsg.chans) {
echo -ag msg $chan(%a) 14(4a15MSG14)6 $3-
}
inc %a
}
}
both notice me and not all chans im in