Data Structures | |
struct | irc_callbacks_t |
Event callbacks structure. More... | |
Typedefs | |
typedef void(* | irc_event_callback_t )(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) |
A most common event callback. | |
typedef void(* | irc_eventcode_callback_t )(irc_session_t *session, unsigned int event, const char *origin, const char **params, unsigned int count) |
A numeric event callback. | |
typedef void(* | irc_event_dcc_chat_t )(irc_session_t *session, const char *nick, const char *addr, irc_dcc_t dccid) |
A remote DCC CHAT request callback. | |
typedef void(* | irc_event_dcc_send_t )(irc_session_t *session, const char *nick, const char *addr, const char *filename, unsigned long size, irc_dcc_t dccid) |
A remote DCC CHAT request callback. |
|
A most common event callback.
Every event has origin, though the origin variable may be NULL, which means that event origin is unknown. The origin usually looks like nick!host@ircserver, i.e. like tim!home@irc.krasnogorsk.ru. Such origins can not be used in IRC commands, and need to be stripped (i.e. host and server part should be cut off) before using. This can be done either explicitly, by calling irc_target_get_nick(), or implicitly for all the events - by setting the LIBIRC_OPTION_STRIPNICKS option with irc_option_set(). |
|
A remote DCC CHAT request callback.
|
|
A remote DCC CHAT request callback.
|
|
A numeric event callback.
Every event has origin, though the origin variable may be NULL, which means that event origin is unknown. The origin usually looks like nick!host@ircserver, i.e. like tim!home@irc.krasnogorsk.ru. Such origins can not be used in IRC commands, and need to be stripped (i.e. host and server part should be cut off) before using. This can be done either explicitly, by calling irc_target_get_nick(), or implicitly for all the events - by setting the LIBIRC_OPTION_STRIPNICKS option with irc_option_set(). |