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.
Help for those learning Tcl or writing their own scripts.
-
Zeta
- Voice
- Posts: 16
- Joined: Fri Apr 04, 2008 8:52 pm
Post
by Zeta »
How can I send ctcp in tcl?
thanks
-
arfer
- Master
- Posts: 436
- Joined: Fri Nov 26, 2004 8:45 pm
- Location: Manchester, UK
Post
by arfer »
Using the partyline Tcl shell (needs to be enabled in the .conf file) :-
[20:27] <arfer> .tcl putserv "PRIVMSG McKay :\001VERSION\001"
[20:27] <Baal> Tcl:
[20:27] <Baal> [20:27] CTCP reply VERSION: eggdrop v1.6.19+ctcpfix from McKay (
mckay@quickie.up.againstthewall.co.uk) to Baal
The ctcp delimiter \001 is briefly covered in the Tcl FAQ section of this forum under the thread heading of 'Color and text formatting codes'.
To capture the response programmatically, you would use a ctcr bind.
I must have had nothing to do