Code: Select all
set areas {
{1 away reason}
{another away reason}
{think of some more}
}
bind evnt - "connect-server" away:connect
proc away:connect {t} {
global areas
putserv "AWAY [lindex $areas [rand [llength $reas]]]"
}
bind splt - "*" away:split
proc away:split {nick uh hand chan} {
global areas
putserv "AWAY [lindex $areas [rand [llength $reas]]]"
}
toputserv "AWAY [lindex $areas [rand [llength $reas]]]"
You will see 2 lines the same in the script, change both.putserv "AWAY [lindex $areas [rand [llength $areas]]]"