| View previous topic :: View next topic |
| Author |
Message |
deuce Voice
Joined: 11 Nov 2006 Posts: 2
|
Posted: Sat Nov 11, 2006 4:26 pm Post subject: bind join/part proc never gets triggered |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Nov 11, 2006 5:37 pm Post subject: |
|
|
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 |
|
 |
deuce Voice
Joined: 11 Nov 2006 Posts: 2
|
Posted: Sat Nov 11, 2006 6:14 pm Post subject: |
|
|
just tried it in the way you said...it doesn't work either
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  |
|
| Back to top |
|
 |
Eckieck Voice
Joined: 01 Dec 2006 Posts: 2
|
Posted: Fri Dec 01, 2006 1:46 pm Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Dec 01, 2006 2:52 pm Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Dec 01, 2006 4:32 pm Post subject: |
|
|
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 |
|
 |
Eckieck Voice
Joined: 01 Dec 2006 Posts: 2
|
Posted: Sat Dec 02, 2006 11:21 am Post subject: |
|
|
Thx a lot, i really used the wrong network setting - for more than one year. You both saved me from going crazy  |
|
| Back to top |
|
 |
|