blob: e30893fe0d024adabf68f74a9ff864344a5c0546 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef __CHANNELS_SETUP_H
#define __CHANNELS_SETUP_H
#include "modules.h"
typedef struct {
char *name;
char *chatnet;
char *password;
char *botmasks;
char *autosendcmd;
int autojoin:1;
GHashTable *module_data;
} CHANNEL_SETUP_REC;
extern GSList *setupchannels;
void channels_setup_init(void);
void channels_setup_deinit(void);
void channels_setup_create(CHANNEL_SETUP_REC *channel);
void channels_setup_destroy(CHANNEL_SETUP_REC *channel);
CHANNEL_SETUP_REC *channels_setup_find(const char *channel,
const char *chatnet);
#define channel_chatnet_match(rec, chatnet) \
((rec) == NULL || (rec)[0] == '\0' || \
((chatnet) != NULL && g_strcasecmp(rec, chatnet) == 0))
#endif
|