irssi/src/irc/core/netsplit.h
Timo Sirainen 555a2bf929 Print nicks who quit IRC in netsplit message. See netsplit section in
docs/manual.txt for more information.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@241 dbcabf3a-b0e7-0310-adc4-f8d773084564
2000-05-25 16:40:25 +00:00

39 lines
739 B
C

#ifndef __NETSPLIT_H
#define __NETSPLIT_H
#include "nicklist.h"
typedef struct {
char *server;
char *destserver;
int count;
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;
int printed:1;
time_t destroy;
} NETSPLIT_REC;
typedef struct {
char *name;
NICK_REC nick;
} 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);
NICK_REC *netsplit_find_channel(IRC_SERVER_REC *server, const char *nick, const char *address, const char *channel);
int quitmsg_is_split(const char *msg);
#endif