1
#ifndef __IRC_COMMANDS_H
2
#define __IRC_COMMANDS_H
6
#define command_bind_irc(cmd, section, signal) \
7
command_bind_proto(cmd, IRC_PROTOCOL, section, signal)
8
#define command_bind_irc_first(cmd, section, signal) \
9
command_bind_proto_first(cmd, IRC_PROTOCOL, section, signal)
10
#define command_bind_irc_last(cmd, section, signal) \
11
command_bind_proto_last(cmd, IRC_PROTOCOL, section, signal)
13
/* Simply returns if server isn't for IRC protocol. Prints ERR_NOT_CONNECTED
14
error if there's no server or server isn't connected yet */
15
#define CMD_IRC_SERVER(server) \
17
if (server != NULL && !IS_IRC_SERVER(server)) \
19
if (server == NULL || !(server)->connected) \
20
cmd_return_error(CMDERR_NOT_CONNECTED); \
23
void irc_commands_init(void);
24
void irc_commands_deinit(void);