#include "isupport.h"
#include "log.h"
Go to the source code of this file.
Data Structures | |
struct | channel_nick |
Record of a nick on a channel. More... | |
struct | network_nick |
struct | banlist_entry |
An entry in the banlist of a channel. More... | |
struct | irc_channel_state |
The state of a particular channel. More... | |
struct | irc_network_state |
Describes the (partial) state of a network at a specific time. More... | |
Defines | |
#define | modes_set_mode(modes, newmode) modes_change_mode(modes, TRUE, newmode) |
#define | modes_unset_mode(modes, newmode) modes_change_mode(modes, FALSE, newmode) |
Typedefs | |
typedef gboolean | irc_modes_t [255] |
Functions | |
G_GNUC_MALLOC G_MODULE_EXPORT struct irc_network_state * | network_state_init (const char *nick, const char *username, const char *hostname) |
G_MODULE_EXPORT void | free_network_state (struct irc_network_state *) |
G_MODULE_EXPORT gboolean | state_handle_data (struct irc_network_state *s, const struct irc_line *l) |
G_MODULE_EXPORT struct irc_channel_state * | find_channel (struct irc_network_state *st, const char *name) |
G_MODULE_EXPORT struct channel_nick * | find_channel_nick (struct irc_channel_state *c, const char *name) |
Find channel nick by name. | |
G_MODULE_EXPORT struct channel_nick * | find_channel_nick_hostmask (struct irc_channel_state *c, const char *hostmask) |
Find channel nick by hostmask. | |
G_MODULE_EXPORT struct channel_nick * | find_add_channel_nick (struct irc_channel_state *c, const char *name) |
Search for a channel nick, or add it if not found. | |
G_MODULE_EXPORT struct network_nick * | find_network_nick (struct irc_network_state *c, const char *name) |
Find network nick by name. | |
G_MODULE_EXPORT gboolean | network_nick_set_hostmask (struct network_nick *n, const char *hm) |
G_MODULE_EXPORT gboolean | client_send_state (struct irc_client *, struct irc_network_state *) |
Send a particular state to a client. | |
G_MODULE_EXPORT void | network_state_log (enum log_level l, const struct irc_network_state *st, const char *fmt,...) |
G_MODULE_EXPORT void | network_state_set_log_fn (struct irc_network_state *st, void(*fn)(enum log_level, void *, const char *), void *userdata) |
G_MODULE_EXPORT G_GNUC_MALLOC char * | mode2string (irc_modes_t modes) |
G_MODULE_EXPORT void | string2mode (char *modestring, irc_modes_t modes) |
G_MODULE_EXPORT gboolean | modes_change_mode (irc_modes_t modes, gboolean set, char newmode) |
G_MODULE_EXPORT char | get_prefix_from_modes (struct irc_network_info *info, irc_modes_t modes) |
G_MODULE_EXPORT gboolean | is_channel_mode (struct irc_network_info *info, char mode) |
G_MODULE_EXPORT gboolean | is_user_mode (struct irc_network_info *info, char mode) |
G_MODULE_EXPORT char | get_mode_by_prefix (char prefix, const struct irc_network_info *n) |
G_MODULE_EXPORT char | get_prefix_by_mode (char mode, const struct irc_network_info *n) |
G_MODULE_EXPORT gboolean | is_prefix_mode (const struct irc_network_info *info, char mode) |
G_MODULE_EXPORT gboolean client_send_state | ( | struct irc_client * | c, | |
struct irc_network_state * | state | |||
) |
Send a particular state to a client.
c | Client to send to | |
state | State to send |
G_MODULE_EXPORT struct channel_nick* find_add_channel_nick | ( | struct irc_channel_state * | c, | |
const char * | name | |||
) | [read] |
Search for a channel nick, or add it if not found.
n | Channel state to search | |
name | Name of the nick to search for |
G_MODULE_EXPORT struct channel_nick* find_channel_nick | ( | struct irc_channel_state * | c, | |
const char * | name | |||
) | [read] |
Find channel nick by name.
c | Channel state to search | |
name | Name of the nick to search for |
G_MODULE_EXPORT struct channel_nick* find_channel_nick_hostmask | ( | struct irc_channel_state * | c, | |
const char * | hm | |||
) | [read] |
Find channel nick by hostmask.
c | Channel state to search | |
hm | Hostmask of the nick to search for |
G_MODULE_EXPORT struct network_nick* find_network_nick | ( | struct irc_network_state * | n, | |
const char * | name | |||
) | [read] |
Find network nick by name.
n | Network state to search | |
name | Name of the nick to search for |