send_ctcp

Name

send_ctcp -- Sends a CTCP request to a channel or user

Synopsis

void send_ctcp(string target, string message);

Description

CTCP is an acronym for Client-To-Client Protocol (Appendix B) and may be used for gathering information about a given client. Please refer to the above link for information on what queries can be made.

Example 3-1. Find out IRC client version from user 'foobar'

$this->send_ctcp("foobar", "VERSION");
	  

Note

You need to setup a listener for the reply using the bind_type method.