mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
020861c698
which were part of it. Removed it now and replaced it with saving only op/halfop/voice status. Might have caused some crashes? (hopefully did :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2234 dbcabf3a-b0e7-0310-adc4-f8d773084564
43 lines
898 B
C
43 lines
898 B
C
#ifndef __NETSPLIT_H
|
|
#define __NETSPLIT_H
|
|
|
|
#include "nicklist.h"
|
|
|
|
typedef struct {
|
|
char *server;
|
|
char *destserver;
|
|
int count;
|
|
int prints; /* temp variable */
|
|
|
|
time_t last; /* last time we received a QUIT msg here */
|
|
} NETSPLIT_SERVER_REC;
|
|
|
|
typedef struct {
|
|
NETSPLIT_SERVER_REC *server;
|
|
|
|
char *nick;
|
|
char *address;
|
|
GSList *channels;
|
|
|
|
unsigned int printed:1;
|
|
time_t destroy;
|
|
} NETSPLIT_REC;
|
|
|
|
typedef struct {
|
|
char *name;
|
|
unsigned int op:1;
|
|
unsigned int halfop:1;
|
|
unsigned int voice:1;
|
|
} 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);
|
|
NETSPLIT_CHAN_REC *netsplit_find_channel(IRC_SERVER_REC *server, const char *nick, const char *address, const char *channel);
|
|
|
|
/* check if quit message is a netsplit message */
|
|
int quitmsg_is_split(const char *msg);
|
|
|
|
#endif
|