2000-04-26 04:03:38 -04:00
|
|
|
#ifndef __NETSPLIT_H
|
|
|
|
#define __NETSPLIT_H
|
|
|
|
|
|
|
|
#include "nicklist.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *server;
|
|
|
|
char *destserver;
|
2000-05-04 06:32:42 -04:00
|
|
|
int count;
|
2000-07-02 12:19:26 -04:00
|
|
|
int prints; /* temp variable */
|
2000-05-25 12:40:25 -04:00
|
|
|
|
|
|
|
time_t last; /* last time we received a QUIT msg here */
|
2000-05-04 06:32:42 -04:00
|
|
|
} NETSPLIT_SERVER_REC;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
NETSPLIT_SERVER_REC *server;
|
|
|
|
|
|
|
|
char *nick;
|
|
|
|
char *address;
|
2000-04-26 04:03:38 -04:00
|
|
|
GSList *channels;
|
|
|
|
|
2000-11-23 17:57:59 -05:00
|
|
|
unsigned int printed:1;
|
2000-04-26 04:03:38 -04:00
|
|
|
time_t destroy;
|
|
|
|
} NETSPLIT_REC;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *name;
|
2001-12-10 18:32:46 -05:00
|
|
|
unsigned int op:1;
|
|
|
|
unsigned int halfop:1;
|
|
|
|
unsigned int voice:1;
|
2008-11-27 19:16:51 -05:00
|
|
|
char prefixes[MAX_USER_PREFIXES+1];
|
2000-04-26 04:03:38 -04:00
|
|
|
} NETSPLIT_CHAN_REC;
|
|
|
|
|
|
|
|
void netsplit_init(void);
|
|
|
|
void netsplit_deinit(void);
|
|
|
|
|
|
|
|
NETSPLIT_REC *netsplit_find(IRC_SERVER_REC *server, const char *nick, const char *address);
|
2001-12-10 18:32:46 -05:00
|
|
|
NETSPLIT_CHAN_REC *netsplit_find_channel(IRC_SERVER_REC *server, const char *nick, const char *address, const char *channel);
|
2000-04-26 04:03:38 -04:00
|
|
|
|
2001-08-14 07:53:08 -04:00
|
|
|
/* check if quit message is a netsplit message */
|
2000-05-04 06:32:42 -04:00
|
|
|
int quitmsg_is_split(const char *msg);
|
|
|
|
|
2000-04-26 04:03:38 -04:00
|
|
|
#endif
|