I had to change a bit for it to work
alias away {
/set %reason. [ $+ [ $network ] ] $1-
/set %away.1. [ $+ [ $network ] ] $ctime
/set %awayscript. [ $+ [ $network ] ] on
/me I am now away. $1- $+ .
}
alias back {
if (%awayscript. [ $+ [ $network ] ] == on) {
/me I am back from %reason. [ $+ [ $network ] ] $+ . I was away for $duration($calc($ctime - %away.1. [ $+ [ $network ] ] ))
/unset %reason. [ $+ [ $network ] ]
/unset %away.1. [ $+ [ $network ] ]
/set %awayscript. [ $+ [ $network ] ] off
}
}
on *:text:**:#: {
if $1 != $me $+ ? { halt }
if (%awayscript. [ $+ [ $network ] ] == on) {
/notice $nick I am currently away. Reason: %reason. [ $+ [ $network ] ] $+ . I have been away for $duration($calc($ctime - %away.1. [ $+ [ $network ] ] ))
}
}
This is got to be the dumbest snippet ever. It shows only current user count, never \"peak count\", ie maximum number of users on channel. Besides, on input means that only you can use !count... and why on earth would you like to message the number of users to the channel?! And what is with the halt there?! Not to mention, where should the poor snippet get the $nick and $chan as this is private event?!