Ctcp
From Global Shellz Wiki
CTCP is client to client protocol used in IRC.
Contents |
Usage
One of its features is exchange of clients' version, os and other information by request. To request a client data,
/version nick
Your client would display a nice reply like this:
Version reply "irssi 0.8" from nick
Raw
The raw part of this is that the request is a private message like this:
PRIVMSG nick :\001VERSION\001
The response would be a notice of this format:
NOTICE yournick :\001VERSION irssi 0.8\001
Types
The supported ctcp request types are:
- FINGER - Returns the user's full name, and idle time.
- VERSION - The version and type of the client.
- SOURCE - Where to obtain a copy of a client.
- USERINFO - A string set by the user (never the client coder)
- CLIENTINFO - Dynamic master index of what a client knows.
- ERRMSG - Used when an error needs to be replied with.
- PING - Used to measure the delay of the IRC network between clients.
- TIME - Gets the local date and time from other clients.
Action
An extended type is "action", commonly used as
/me waves.
and visible as
* nick waves.
The raw part of this is
PRIVMSG #channel :\001ACTION waves.\001