-h+v does only -h
-h +v does not much really, -h only
* Natsuki-Chan sets mode: -h+v MystMan MystMan
I want the bot to do that basically

Code: Select all
#Public binder for setting whether halfops are on
bind pub mn|mn !ahop pub:ahop
proc pub:ahop {nick uhost hand chan text} {
set ahop(status) [lindex [split $text] 0]
set ahop(hopping) [lindex [split $text] 1]
if {$ahop(status) == "on"} {
set $::ahop(check) "1"
puthelp "Privmsg $chan :Halfopping has now been turned on"
if {$ahop(hopping) == "hop"} {
foreach user [chanlist $chan 2|2] {
putlog "$user"
set ahop(nick) [hand2nick $user $chan]
putserv "Mode $chan +h $ahop(nick)"}
}
}
if {$ahop(status) == "off"} {
set $::ahop(check) "0"
puthelp "Privmsg $chan :Halfopping has been turned off"
foreach user [chanlist $chan 2|2] {
putlog "$user"
set ahop(nick) [hand2nick $user $chan]
putserv "Mode $chan -h +v $ahop(nick)"
# putserv "mode $chan $ahop(nick)"
}
}
putlog "$ahop(status) $ahop(hopping)"
}