You shouldn't remove features :s
The point is, you're not supposed to use the script alone, do you ? I mean, what for ? it's not fun
Anyway, i think you can mod the thingy otherwise.
I'd rather make the script outputs the nick "Somebody" when there's not enough people to use the proc :
The point is, you're not supposed to use the script alone, do you ? I mean, what for ? it's not fun
Anyway, i think you can mod the thingy otherwise.
I'd rather make the script outputs the nick "Somebody" when there's not enough people to use the proc :
TCL
proc Oracle::randnick {nick chan} {
set users_list [lreplace [set users [chanlist $chan -b|]] [set index [lsearch $users $nick]] $index]
set users_list [lreplace $users_list [set index [lsearch $users_list $::botnick]] $index]
if {![llength $users_list]} { return Somebody }
return [lindex $users_list [rand [llength $users_list]]]
}