This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Problems with channel join detection

Old posts that have not been replied to for several years.
Locked
K
KevKev
Halfop
Posts: 67
Joined: Fri Oct 03, 2003 5:15 am

Problems with channel join detection

Post by KevKev »

I'm having some difficulties with one of my bots. It's connecte dto a non-standard server (EQIMD http://teqim.sourceforge.net/?p=eqimd ) so i'm not sure if it's an eggdrop problem or an IRCD problem. What's happening is that the bot is not triggering join/part binds. i enabled the raw console flag and it showed:

Code: Select all

[08:34] [@] tunare.Zaepho!tunare.Zaepho@EQIMd PART #serverwide.woodforest
[08:34] [@] tunare.Zaepho!tunare.Zaepho@EQIMd JOIN #serverwide.woodforest
in the partyline. Which looks fine when compared to join/parts from another bot on a standard IRCD.

to compare I slamed together a few binds/procs to test to make sure it wasn't a problem with the script i was using.

Code: Select all

bind join - * test_join
proc test_join {nick host hand chan} {
	putloglev 1 $chan "$nick joined $chan"
}

bind part - * test_part
proc test_part {nick host hand chan args} {
	putloglev 1 $chan "$nick left $chan"
}

bind raw - JOIN test_join_raw
proc test_join_raw {src key txt} {
	set txtlist [split $txt " "]
	set full_user [lindex $txtlist 0]
	set nick [lindex [split $full_user "!"] 0]
	set keyword [lindex $txtlist 1]
	set chan [lindex $txtlist 2]
	putloglev 2 * "***RAW*** src: $src key: $key txt: $txt"
}
bind join didn't get any hits with repeated joins/parts.
the raw bindings/proc did show (on the EQIMD server):

Code: Select all

[08:54] ***RAW*** src: tunare.Zaepho!tunare.Zaepho@EQIMd key: JOIN txt: #serverwide.woodforest
which matches with what i found on a regular server:

Both bots were compiled from the same source code and are 1.6.15+SSL.
The joins/parts are shown properly in other clients (Xchat and mIRC).

Anything else i can check or try? I'd rather not try to re-invent the wheel with the raw bindings for this script. Any thoughts?
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

Add "return 0" to the end of your raw bound procedures to make sure they are not ending furthur processing of events.
K
KevKev
Halfop
Posts: 67
Joined: Fri Oct 03, 2003 5:15 am

Post by KevKev »

strikelight wrote:Add "return 0" to the end of your raw bound procedures to make sure they are not ending furthur processing of events.
Done, however i'm certain this is not the issue as i tossed this bit of script together for testing/troubleshooting purposes after I saw that the problem existed.

I'm not sure what else to check. Is there a place in the source that i can compare the expected join/part info in eggdrop to what the server is sending (i have the source for that as well)
Locked