CTCP
From Free net encyclopedia
CTCP stands for Client-To-Client-Protocol, which is a special type of communication between Internet Relay Chat (IRC) Clients.
CTCP is a common protocol implemented by every major IRC client in use today. CTCP extends the original IRC protocol by allowing users to send private messages and to query other clients for specific information. Additionally, CTCP can be used to encode messages that the raw IRC protocol would not allow to be sent over the link, such as messages containing newlines or the byte value 0.
CTCP allows users to query a remote client from the version of the client they are using (CTCP VERSION), the time (CTCP TIME), or get remote user info (CTCP USERINFO), among other things. It is used to implement the /me command. CTCP is also used to negotiate DCC connections.
A CTCP message is implemented as a PRIVMSG where the message starts and ends with the byte 1. Additionally characters which would not be allowed in the IRC protocol are escaped. Since a PRIVMSG as a rule should not generate another PRIVMSG as a reply, a CTCP reply is implemented with a NOTICE instead of a PRIVMSG, but is otherwise identical.
See also
- DCC (Direct Client-to-Client)