I'm trying to capture global notices from anope with a tcl in my eggdrop bot.
I have been completely unsucessful so far. Here are the bindings and procs that i have tried. Any help in pointing me in teh right direction would be helpful.
Thanks!
bind raw - NOTICE raw:notice:parse
bind raw - *Global* raw:notice:parse
bind raw - Global raw:notice:parse
bind raw - NOTICE* raw:notice:parse
proc raw:notice:parse {from keyword text} {
#if {![string match {*!*@*} $from]} {
# putlog "Server notice from ${from}: $text"
#} else {
# putlog "Non-Server Notice from ${from}: $text"
#}
putlog "raw notice parse called with notice from ${from}: $text"
return 0
}
bind NOTC - * notcparse
proc notcparse {nick uhost hand text {dest ""}} {
global botnick
putlog "notcparse called... From $nick: $text"
if {$dest == ""} {
set dest $botnick
putlog "notice came direct to bot"
}
}
here's a source of one of my tcl.
The eggdrop binds the server notices and if it's a connection, then performs a /version.
Sure, it binds the version reply too.
Hope it'll help you.
For no apparent reason the raw notice bind worked today when i sent a global ::shrugs:: Either i was completely insane yesterday or somethign odd was happening.
CrazyCat...... i am curious, what part exactly in the client:connect pulls the ctcp info, cause i have unbound the other proc ( the version proc, but it still pulls it.
Reason i ask, is cause u have helped me to get a raw bind on mine working that i have been trying to figure out for weeks, but my server prolly uses a diff format for the info, and i am hoping to extract other pieces of info than a version, mainly just nick from all users that connect to the server ( for oper reasons)
guess i shoulve mentioned i use Anope-1.6.2 , and the bot is opered, (unreal-icrd-rc final). Eggdrop version is 1.6.15, tcl version is either 8.3 or 8.4, not sure which.