Functions | |
int | irc_send_raw (irc_session_t *session, const char *format,...) |
Sends raw data to the IRC server. | |
int | irc_cmd_quit (irc_session_t *session, const char *reason) |
Sends QUIT command to the IRC server. | |
int | irc_cmd_user_mode (irc_session_t *session, const char *mode) |
Views or changes your own user mode. | |
int | irc_cmd_nick (irc_session_t *session, const char *newnick) |
Changes your nick. | |
int | irc_cmd_whois (irc_session_t *session, const char *nick) |
Queries the information about the nick. |
int irc_cmd_nick | ( | irc_session_t * | session, | |
const char * | newnick | |||
) |
Changes your nick.
session | An initiated and connected session. | |
newnick | A new nick. Must not be NULL. |
Possible error responces for this command from the RFC1459:
int irc_cmd_quit | ( | irc_session_t * | session, | |
const char * | reason | |||
) |
Sends QUIT command to the IRC server.
session | An initiated and connected session. | |
reason | A reason to quit. May be NULL. |
int irc_cmd_user_mode | ( | irc_session_t * | session, | |
const char * | mode | |||
) |
Views or changes your own user mode.
session | An initiated and connected session. | |
mode | A user mode, described below. If NULL, the user mode is not changed, just the old mode is returned. |
Like channel mode, user mode is also represended by the letters combination. All the user mode letters are boolean (i.e. could only be set or reset), they are set by adding a plus sign before the letter, and reset by adding a minus sign before the letter.
Here is the list of 'standard' user modes:
Note that the actual list of user modes depends on the IRC server, and can be bigger. If you know the popular user modes, which aren't mentioned here - please contact me at tim@krasnogorsk.ru
Possible error responces for this command from the RFC1459:
And the mode information is given using reply code LIBIRC_RFC_RPL_UMODEIS
int irc_cmd_whois | ( | irc_session_t * | session, | |
const char * | nick | |||
) |
Queries the information about the nick.
session | An initiated and connected session. | |
nick | A nick to query the information abour. Must not be NULL. A comma-separated list of several nicknames may be given. |
Possible error responces for this command from the RFC1459:
And the information is returned using the following reply codes. The whois query is completed when LIBIRC_RFC_RPL_ENDOFWHOIS message is received.
int irc_send_raw | ( | irc_session_t * | session, | |
const char * | format, | |||
... | ||||
) |
Sends raw data to the IRC server.
session | An initiated and connected session. | |
format | A printf-formatted string, followed by function args. |