Functions | |
int | irc_cmd_join (irc_session_t *session, const char *channel, const char *key) |
Joins the new IRC channel. | |
int | irc_cmd_part (irc_session_t *session, const char *channel) |
Leaves the IRC channel. | |
int | irc_cmd_invite (irc_session_t *session, const char *nick, const char *channel) |
Invites a user to invite-only channel. | |
int | irc_cmd_names (irc_session_t *session, const char *channel) |
Obtains a list of users who're in channel. | |
int | irc_cmd_list (irc_session_t *session, const char *channel) |
Obtains a list of active server channels with their topics. | |
int | irc_cmd_topic (irc_session_t *session, const char *channel, const char *topic) |
Views or changes the channel topic. | |
int | irc_cmd_channel_mode (irc_session_t *session, const char *channel, const char *mode) |
Views or changes the channel mode. | |
int | irc_cmd_kick (irc_session_t *session, const char *nick, const char *channel, const char *reason) |
Kick some lazy ass out of channel. |
|
Views or changes the channel mode.
Channel mode is represended by the letters combination. Every letter has its own meaning in channel modes. Most channel mode letters are boolean (i.e. could only be set or reset), but a few channel mode letters accept a parameter. All channel options 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' channel modes:
Note that the actual list of channel modes depends on the IRC server, and can be bigger. If you know the popular channel 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 following reply codes:
|
|
Invites a user to invite-only channel.
Possible error responces for this command from the RFC1459:
And on success one of the following replies returned:
|
|
Joins the new IRC channel.
If join is successful, the irc_callbacks_t::event_join is called (with origin == your nickname), then you are sent the channel's topic (using LIBIRC_RFC_RPL_TOPIC) and the list of users who are on the channel (using LIBIRC_RFC_RPL_NAMREPLY), which includes the user joining - namely you. Possible error responces for this command from the RFC1459:
And on success the following replies returned: |
|
Kick some lazy ass out of channel.
Possible error responces for this command from the RFC1459:
On success the irc_callbacks_t::event_kick event will be generated.
|
|
Obtains a list of active server channels with their topics.
Possible error responces for this command from the RFC1459: And the channel list is returned using the following reply codes:
|
|
Obtains a list of users who're in channel.
The channel names are returned by irc_callbacks_t::event_numeric using the following reply codes: |
|
Leaves the IRC channel.
Possible error responces for this command from the RFC1459: |
|
Views or changes the channel topic.
If the command succeed, the IRC server will generate a RPL_NOTOPIC or RPL_TOPIC message, containing either old or changed topic. Also the IRC server can (but not have to) generate the non-RFC RPL_TOPIC_EXTRA message, containing the nick of person, who's changed the topic, and the time of latest topic change. Possible error responces for this command from the RFC1459: And the topic information is returned using one of following reply codes:
|