### Mail notification essentially identical to /set mail 2,
### only ircII's /set mail 2 doesn't work good for me so I had to do this.

on ^exec "frm *" echo ***     $1-
on ^mail * {
        echo *** You have new email.
        exec -name frm frm | tail -$0
}

### look for cut and uptime, using 'which'
### of course, 'which' itself must exist, right .... =)
### I personally have no problems here, but some people don't have
### the necessary utils to do a (load) indicator.

alias whichstuph {
        if (!(nocut || nouptime || nosed || nowhich))
        {
        ^on ^exec "load *" set status_user2  \\\(load $$1-\\\)
        ^exec -name load uptime | cut -d',' -f4 | cut -d':' -f2 | sed 's/ //g'
        ^on #^timer 102 * {
                ^set status_user2  \(load ????\)
                ^exec -name load uptime | cut -d',' -f4 | cut -d':' -f2 | sed 's/ //g'
                }
        }
        ^assign -nocut
        ^assign -nouptime
        ^assign -nosed
        ^assign -nowhich
        ^on exec -"which *"
        ^on exec_exit -"which *"
        ^alias -whichstuph
}

on ^exec_exit "which *" assign nowhich $2;whichstuph
on ^exec "which *" if ([$1]==[no]) { ^assign no$2 1 }
^exec -name which which cut uptime sed

on #^timer 40 * whichstuph
