I´m currently trying to script a bot on a local network. And I need the bot to be able to autoop ppl on the network. Furthermore I wnat the script to give voice to everyone else connecting to the server. I know the ip range of the ppl on the network, and voice should be given to everybody else that is connecting. I am hoping for some quick feedback. And hope that an answer for this answer havent been given before. If so. Please direct me to the thread. Because I havent been able to find it through the search function.
# your local network network IP range
set localmask *@192.168.*
bind join - * foo
proc foo {n u h c} {
if {[string match $::localmask $u]} {
pushmode $c +o $n
} else {
pushmode $c +v $n
}
}