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.

catching a version reply

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

catching a version reply

Post by CrazyCat »

hi,
I'm making a small tcl to get a list of client versions used on my network.
I succeed in binding a connection and send a ctcp $nick VERSION.
BUT:

Code: Select all

bind ctcr - * client:version
bind ctcp - * client:version
or

Code: Select all

bind ctcr - VERSION client:version
bind ctcp - VERSION client:version
don't work.
I've tryed a lot, no way...
eggdrop wrote: ctcr -|- * 0 client:version
ctcp -|- * 0 client:version
ctcr -|- version 0 client:version
ctcp -|- version 0 client:version
User avatar
BarkerJr
Op
Posts: 104
Joined: Sun Mar 30, 2003 1:25 am
Contact:

Post by BarkerJr »

What version Eggdrop is this?
User avatar
CrazyCat
Revered One
Posts: 1253
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

1.6.15 :)
always the last :)
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

check '.binds ctcp all' - some other bind might be blocking it
Have you ever read "The Manual"?
User avatar
CrazyCat
Revered One
Posts: 1253
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

well, imho, I haven't any trouble with ctcp but with ctcr.
TYPE FLGS COMMAND HITS BINDING (TCL)
ctcp -|- CHAT 1 *ctcp:CHAT
ctcp -|- TIME 0 *ctcp:TIME
ctcp -|- CLIENTINFO 0 *ctcp:CLIENTINFO
ctcp -|- USERINFO 0 *ctcp:USERINFO
ctcp -|- VERSION 4 *ctcp:VERSION
ctcp -|- ERRMSG 0 *ctcp:ERRMSG
ctcp -|- PING 0 *ctcp:PING
ctcp -|- ECHO 0 *ctcp:ECHO
ctcp -|- FINGER 0 *ctcp:FINGER
ctcp -|- DCC 0 *ctcp:files:DCC
ctcp -|- DCC 0 *ctcp:transfer:DCC
ctcp -|- DCC 0 *ctcp:server:DCC

TYPE FLGS COMMAND HITS BINDING (TCL)
ctcr -|- VERSION 0 client:version
ctcr -|- * 0 client:version

the 2 ctcr binds are mine, no one works...
User avatar
CrazyCat
Revered One
Posts: 1253
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

So anyone knows why I can't bind the ctcr?
I've read all the FAQ I can found about it, no idea :(((

I'd tried other scripts using ctcp/ctcr and they don't work anymore.
here is my configuration:
Perceval wrote: [14:39] <Perceval> Modules loaded:
[14:39] <Perceval> Module: wire (v2.0)
[14:39] <Perceval> Module: assoc (v2.0)
[14:39] <Perceval> Module: console (v1.1)
[14:39] <Perceval> Module: notes (v2.1)
[14:39] <Perceval> Module: filesys (v2.0)
[14:39] <Perceval> Module: share (v2.3)
[14:39] <Perceval> Module: transfer (v2.3)
[14:39] <Perceval> Module: irc (v1.3)
[14:39] <Perceval> Module: ctcp (v1.0)
[14:39] <Perceval> Module: server (v1.2)
[14:39] <Perceval> Module: channels (v1.0)
[14:39] <Perceval> Module: dns (v1.0)
[14:39] <Perceval> Module: uptime (v1.2)
[14:39] <Perceval> Module: encryption (v2.1)
[14:39] <Perceval> Module: eggdrop (v106.15)
[14:39] <Perceval> End of modules list.
So, if you can something for me :)
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

CrazyCat wrote:[snip]So anyone knows why I can't bind the ctcr?
Not sure what you have been trying, but making a "bind ctcr - VERSION procname" works fine for me.
Try .restart'ing your bot after each modification you make.

Code: Select all

bind ctcr - VERSION client:version

proc client:version { nick uhost hand dest key text } {
   putlog "got VERSION reply from $nick"
}
User avatar
CrazyCat
Revered One
Posts: 1253
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

Code: Select all

bind ctcr - * client:version

proc client:version {nick uhost handle dest key text} {
	putlog "PRIVMSG #c-p-f :$nick said $key - $text to $dest"
}
Perceval is restarted, I do:
.tcl putserv "PRIVMSG CrazyCat :\001VERSION\001"
.tcl putserv "PRIVMSG Perceval :\001VERSION\001"


and after:
Perceval wrote: TYPE FLGS COMMAND HITS BINDING (TCL)
ctcr -|- * 0 client:version
P.S.: same when binding VERSION, or VERSION*, or *VERSION*
Last edited by CrazyCat on Mon Nov 03, 2003 10:46 am, edited 1 time in total.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

perhaps you are using the bitchx simul from sentinel.tcl! check if set sl_bxsimul is 1 or 0 at the end of configuration part (line 251 in my script).
User avatar
CrazyCat
Revered One
Posts: 1253
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

no sentinel.tcl, I've just loaded:
- alltools.tcl
- action.fix.tcl
- compat.tcl
- userinfo.tcl
- userinfo.help
- bnuser.tcl

and when doing .binds ctcr all, I can just see my own binds, so I don't think the trouble cames from another tcl...
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

CrazyCat wrote:

Code: Select all

[snip]
putlog "PRIVMSG #c-p-f :$nick said $key - $text to $dest"
Not sure what you have been looking at, but a putlog only *logs* something, visible in a logfile or on the partyline with the appropriate console flags.
It does not send anything to the IRC server.
User avatar
CrazyCat
Revered One
Posts: 1253
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

yes, I know, I want the egg show me in log the command it may execute when the script'll be ended.
Don't mind about this, my trouble is the ctcr -|- VERSION 0 client:version
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

CrazyCat wrote:yes, I know, I want the egg show me in log the command it may execute when the script'll be ended.
Don't mind about this, my trouble is the ctcr -|- VERSION 0 client:version
If you send a VERSION ctcp to Perceval using a regular IRC client, does the bot send a proper ctcp reply back?
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

Alternatively, you can trigger the ctcr also by sending a ctcp reply directly:

Code: Select all

.tcl puthelp "NOTICE Perceval :\001VERSION eggdrop\001"
User avatar
CrazyCat
Revered One
Posts: 1253
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

egghead wrote:If you send a VERSION ctcp to Perceval using a regular IRC client, does the bot send a proper ctcp reply back?
Yes, no trouble to make the egg replying...
and when the egg sends me a ctcp version, I answer correctly.
but no way to have him catching the version reply.
I'd tried binding notice, raw, ctcp, ctcr, msg, msgm....
nothing!
Locked