Functions | |
| int | irc_cmd_ctcp_request (irc_session_t *session, const char *nick, const char *request) |
| Generates a CTCP request. | |
| int | irc_cmd_ctcp_reply (irc_session_t *session, const char *nick, const char *reply) |
| Generates a reply to the CTCP request. | |
| int irc_cmd_ctcp_reply | ( | irc_session_t * | session, | |
| const char * | nick, | |||
| const char * | reply | |||
| ) |
Generates a reply to the CTCP request.
| session | An initiated and connected session. | |
| nick | A target nick to send request to. Must not be NULL. | |
| reply | A reply string. Must not be NULL. |
event_ctcp_req callback during the IRC session initialization.Possible error responces for this command from the RFC1459:
| int irc_cmd_ctcp_request | ( | irc_session_t * | session, | |
| const char * | nick, | |||
| const char * | request | |||
| ) |
Generates a CTCP request.
| session | An initiated and connected session. | |
| nick | A target nick to send request to. Must not be NULL. | |
| request | A request string. Must not be NULL. |
A reply to the CTCP request will be sent by the irc_callbacks_t::event_ctcp_rep callback; be sure to define it.
Possible error responces for this command from the RFC1459:
1.5.6