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.

I wonder the mistake is here :)

Old posts that have not been replied to for several years.
Locked
User avatar
CrazyCat
Revered One
Posts: 1348
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

I wonder the mistake is here :)

Post by CrazyCat »

Ok, I'm back with my ctcr trouble, but with a beginning of response:

the trouble come from: bind raw - Notice client:connect

this bind blocks all NOTC and CTCR binds (I didn't test others)

can someone help me debbuging this?
the procedure is:

Code: Select all

proc client:connect {from word text} {
	global botnick
	if {[string first "connecting" $text] > 0} {
		set b_nick [string first ":***" $text]
		set b_nick [string first ": " $text $b_nick]
		incr b_nick 2
		set e_nick [string first " (" $text $b_nick]
		incr e_nick -1
		set victim [string range $text $b_nick $e_nick]
		if { $botnick == $victim } {
			return 0
		} else {
			putserv "PRIVMSG $victim :\001VERSION\001"
		}
	} else {
		return 0
	}
}
User avatar
CrazyCat
Revered One
Posts: 1348
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

ok, laugh at me

Post by CrazyCat »

I correct my bind :)))
using bind raw - Notice proc:name blocks all the bind NOTC or CTCR...
So I try a lot of things... and finally find:
bind raw - NOTICE proc:name is ok: capitals must be use!!!
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

thats odd indeed...

activating the "bind RAW - NoTiCe raw:notice" by removing the "###" will demonstate what you have found.

Code: Select all

bind ctcr - VERSION client:version 

proc client:version { nick uhost hand dest key text } { 
   putlog "got VERSION reply from $nick" 
} 

### bind RAW - NoTiCe raw:notice

proc raw:notice { from key text } {
   putlog "NoTiCe: $from - $key - $text"
   return 0
}

bind RAW - NOTICE raw:notice2

proc raw:notice2 { from key text } {
   putlog "NOTICE: $from - $key - $text"
   return 0
}

bind DCC - versionme dcc:versionme

proc dcc:versionme { hand idx text } {
   global botnick
   puthelp "NOTICE $botnick :\001VERSION mad eggdrop\001"
}
Locked