(all this is in namespace automodes)
Code: Select all
bind raw * JOIN automodes::rawjoin_automode
proc rawjoin_automode {from keyword txt} {
set n [lindex [split $from "!"] 0]
set u [lindex [split $from "!"] 1]
set h "*"
set c [string range $txt [string first "#" $txt] end]
set a ""
join_automode $n $u $h $c $a
}
proc join_automode {n u h c a} {
global automodes::doautomodes_on_myop
if {[isbotnick $n]} {
putlog "Joined Auto-Mode channel $c. Do automodes as soon as i get op."
set automodes::doautomodes_on_myop($c) 1
} else {
if {![botisop $c]} { return 0 }
if {[channel get $c av]} {
putserv "MODE $c +v $n"
}
if {[channel get $c ao]} {
putserv "MODE $c +o $n"
}
}
}
Joined Auto-Mode channel $c. Do automodes as soon as i get op.
is put into the partyline..that happens
Code: Select all
[20:52] Oops. Someone made me join #chan... leaving...
any suggestions?