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.
Old posts that have not been replied to for several years.
CrazyCat
Revered One
Posts: 1348 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Tue Nov 04, 2003 11:22 am
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
}
}
CrazyCat
Revered One
Posts: 1348 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Wed Nov 05, 2003 5:10 am
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!!!
egghead
Master
Posts: 481 Joined: Mon Oct 29, 2001 8:00 pm
Contact:
Post
by egghead » Wed Nov 05, 2003 12:17 pm
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"
}