Code: Select all
bind mode - * moo
proc moo {n u h c m v} {
switch -- $m {
"+q" {lappend ::owns($c) $v
putlog "+own $::owns($c)"
}
"-q" {if {[info exists ::owns($c)] && [set i [lsearch -exact $::owns($c) $v]] != -1} {
putlog "-own $::owns($c) $i"
set ::owns($c) [lreplace $::owns($c) $i $i]
putlog "-own $::owns($c)"
}}
}
}
The bot is coming to the channel and make the list owns with only one element AUTIST.
The I changed the mode:
Bot loggin into console:Mode(AUTIST) sets (-q AUTIST)
The second log it's is a list after deleteing me. Why I am still in the list?[14:53] -own AUTIST {} 1
[14:53] -own AUTIST
Also, the same situation but I am not a ChanOwner (have not +q)
The owns list is empty when bot joining a channel.
Then I ask chanserv to make me owner:
The bot should add me to a own list.Mode(ChanServ) sets (+q FREEK)
But in console the list is still empty....
Can you help me to resolve this?[15:02] +own {}