egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ctcp reply to channel

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
martpen69
Voice


Joined: 20 Jun 2005
Posts: 32

PostPosted: Mon Aug 29, 2005 3:13 pm    Post subject: ctcp reply to channel Reply with quote

Was looking for a script that would request ctcp version from users joining my net (on oper bot) and putting the results into a channel. To later use in my stats program.

Thanks :D
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Aug 30, 2005 2:13 pm    Post subject: Reply with quote

Code:
set relaychan #chan

bind join - ask:version
bind ctcr - VERSION relay:vreply

proc ask:version {nick uhost hand chan} {
 puthelp "privmsg $nick :\001VERSION\001"
}

proc relay:vreply {nick uhost hand dest kw arg} {
 puthelp "privmsg $::relaychan :VERSION reply from $nick is: $arg"
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
martpen69
Voice


Joined: 20 Jun 2005
Posts: 32

PostPosted: Fri Sep 02, 2005 12:20 pm    Post subject: Reply with quote

thanks for the code i have not been able to get it to run though. the egg says its loaded but it wont send a version request or report to channel.

thanks
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Sep 02, 2005 12:48 pm    Post subject: Reply with quote

I don't see why it shouldn't work
Quote:
.tcl bind ctcr - VERSION bla; proc bla {n u h d kw a} { putlog "VERSION from $n is: $a" }
Tcl:
.tcl puthelp "privmsg opposing :\001VERSION\001"
Tcl:
VERSION from Opposing is: mIRC v6.16 Khaled Mardam-Bey

Probably the nick is not replying for the version request in your case.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Sat Sep 03, 2005 2:11 am    Post subject: Reply with quote

Maybe there is a channel mode blocking it.
Back to top
View user's profile Send private message
martpen69
Voice


Joined: 20 Jun 2005
Posts: 32

PostPosted: Sat Sep 03, 2005 5:54 pm    Post subject: Reply with quote

ive put this code into a tcl called r.tcl and loaded it ive added the line at the end just to make sure it loads.

set relaychan #info

bind join - ask:version
bind ctcr - VERSION relay:vreply

proc ask:version {nick uhost hand chan} {
puthelp "privmsg $nick :\001VERSION\001"
}

proc relay:vreply {nick uhost hand dest kw arg} {
puthelp "privmsg $::relaychan :VERSION reply from $nick is: $arg"
}

putlog "ctcp reply by Opposing - Loaded."

the channel #info in unregged and so has no channel modes set.

If i start another client and join my net i dont get a version request from the bot.

Maybe its me im not doing something right or is there a command to activate it. I have been trying i made a fresh egg to run it on just incase it was conflicting with another tcl on the egg but still nothing.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Sep 03, 2005 6:13 pm    Post subject: Reply with quote

Ahh, my bad. Replace
Code:
bind join - ask:version

with
Code:
bind join - * ask:version


Didn't it give you an error when you loaded it? :/
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
martpen69
Voice


Joined: 20 Jun 2005
Posts: 32

PostPosted: Sat Sep 03, 2005 7:02 pm    Post subject: Reply with quote

wooohooo

Thank you very much its all good.

It didnt give no errors before no but i have changed my console settings so maybe thats why. But thanks for sticking with it.

Much appreciated

Thanks again

Very Happy Very Happy Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber