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 

bind join/part proc never gets triggered

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
deuce
Voice


Joined: 11 Nov 2006
Posts: 2

PostPosted: Sat Nov 11, 2006 4:26 pm    Post subject: bind join/part proc never gets triggered Reply with quote

hi,

I'm writing a small script, that has to put some information about a user into a database when he joins a channel and erase these information when he leaves it. so I used some code like this:
Code:

set channel #channel

bind join - "$channel *" on_join
bind part - "$channel *" on_part
bind sign - "$channel *" on_sign
bind kick - "$channel *" on_kick
bind nick - "$channel *" on_nickchange

proc on_join {nick uhost hand chan} {
...
}

proc on_part {nick uhost hand chan {msg ""}} {
...
}

...

but none of these bindings is triggered when a user is joining or parting. the procedures for kicks, nickchanges and signoffs don't work either, although I've build the procedures like it's said in the eggdrop documentation.
eggdrop is as of version 1.6.18

is there any setting in the config or somewhere else, which could cause this or am I doing something wrong in the code?
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Nov 11, 2006 5:37 pm    Post subject: Reply with quote

tcl-commands.doc BINDS:
( 8 ) JOIN (stackable)
bind join <flags> <mask> <proc>
procname <nick> <user@host> <handle> <channel>

Description: triggered by someone joining the channel. The mask in
the bind is matched against "#channel nick!user@host" and can
contain wildcards.
Module: irc
--
I've used this and not had a problem:
bind join - "$channel *!*@*" myproc

You need to use *!*@* for your masks, afaik.
Back to top
View user's profile Send private message
deuce
Voice


Joined: 11 Nov 2006
Posts: 2

PostPosted: Sat Nov 11, 2006 6:14 pm    Post subject: Reply with quote

just tried it in the way you said...it doesn't work either Sad

edit:
ok...I think I solved my problem...somehow the channel my bot was in didn't properly tell the bot that somebody joined or something like this...I switched the channel and now it works...
I'm lucky that the channel which didn't worked was just the test chan Very Happy
Back to top
View user's profile Send private message
Eckieck
Voice


Joined: 01 Dec 2006
Posts: 2

PostPosted: Fri Dec 01, 2006 1:46 pm    Post subject: Reply with quote

I seem to have exactly the same problem (using 1.6.18).

Using
Code:
bind join - * avoj_join
#OR: bind join - "* *!*@*" avoj_join
#OR: bind join - "*" avoj_join
#OR: bind join - {*} avoj_join
proc avoj_join {nick uhost hand c} {
   putlog "DEBUG: $nick joined $c"
}

only gets triggered when my own bot (running this piece of code) enters a channel, not when someone else is joining the channel.

But after i remove a channel and re-add it (.-chan #testchannel and .+chan #testchannel) suddenly the bind gets triggered when someone is joining the channel - until i restart/rehash eggdrop..

Any ideas/hints? Searched the whole afternoon without success :/
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Dec 01, 2006 2:52 pm    Post subject: Reply with quote

Could be a network issue, did you choose the convenient network setting in you .conf file?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Dec 01, 2006 4:32 pm    Post subject: Reply with quote

Which irc network are you using?
Some networks support "odd" features that sometimes causes your bot to loose track of channels...
Also, are you using any "extended" chars in your channel-name?

And for the bind-mask, "*" would match anything matched by "*!*@*".
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Eckieck
Voice


Joined: 01 Dec 2006
Posts: 2

PostPosted: Sat Dec 02, 2006 11:21 am    Post subject: Reply with quote

Thx a lot, i really used the wrong network setting - for more than one year. You both saved me from going crazy Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
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