| View previous topic :: View next topic |
| Author |
Message |
AUTIST Voice

Joined: 01 Feb 2004 Posts: 20
|
Posted: Fri Aug 26, 2005 3:04 pm Post subject: |
|
|
Let me explain, you used next (testing only for 'q' flag):
| Code: | 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)"
}}
}
} |
I am on a channel with +q flag (~) only.
The bot is coming to the channel and make the list owns with only one element AUTIST.
The I changed the mode:
| Quote: | | Mode(AUTIST) sets (-q AUTIST) |
Bot loggin into console:
| Quote: | [14:53] -own AUTIST {} 1
[14:53] -own AUTIST |
The second log it's is a list after deleteing me. Why I am still in the list?
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:
| Quote: | | Mode(ChanServ) sets (+q FREEK) |
The bot should add me to a own list.
But in console the list is still empty....
Can you help me to resolve this?  |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Aug 26, 2005 3:30 pm Post subject: |
|
|
I suspect this happens because of eggdrop's inability to properly handle modes that it doesn't support (chanmodes are hardcoded in eggdrop); in this case, parameter $v is obviously empty, and it shouldn't be empty
try to substitute [bind mode] with [bind raw], your raw proc will need to handle MODE lines; check tcl-commands.doc on info how to do that; if you are stuck, ask for help |
|
| Back to top |
|
 |
AUTIST Voice

Joined: 01 Feb 2004 Posts: 20
|
Posted: Fri Aug 26, 2005 8:42 pm Post subject: |
|
|
| Big thanks! It works with bind RAW |
|
| Back to top |
|
 |
|