mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@632 dbcabf3a-b0e7-0310-adc4-f8d773084564
33 lines
703 B
C
33 lines
703 B
C
#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
|