egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to detect SOP (&nick) in Unreal ircd
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
AUTIST
Voice


Joined: 01 Feb 2004
Posts: 20

PostPosted: Fri Aug 26, 2005 3:04 pm    Post subject: Reply with quote

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....
Quote:
[15:02] +own {}


Can you help me to resolve this? Shocked
Back to top
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Aug 26, 2005 3:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
AUTIST
Voice


Joined: 01 Feb 2004
Posts: 20

PostPosted: Fri Aug 26, 2005 8:42 pm    Post subject: Reply with quote

Big thanks! It works with bind RAW
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber