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
This commit is contained in:
Timo Sirainen 2000-05-25 16:40:25 +00:00 committed by cras
commit 555a2bf929
6 changed files with 182 additions and 6 deletions

View file

@ -49,14 +49,19 @@ static NETSPLIT_SERVER_REC *netsplit_server_create(IRC_SERVER_REC *server, const
NETSPLIT_SERVER_REC *rec;
rec = netsplit_server_find(server, servername, destserver);
if (rec != NULL) return rec;
if (rec != NULL) {
rec->last = time(NULL);
return rec;
}
rec = g_new0(NETSPLIT_SERVER_REC, 1);
rec->last = time(NULL);
rec->server = g_strdup(servername);
rec->destserver = g_strdup(destserver);
server->split_servers = g_slist_append(server->split_servers, rec);
signal_emit("netsplit new server", 2, server, rec);
return rec;
}

View file

@ -7,6 +7,8 @@ typedef struct {
char *server;
char *destserver;
int count;
time_t last; /* last time we received a QUIT msg here */
} NETSPLIT_SERVER_REC;
typedef struct {
@ -16,6 +18,7 @@ typedef struct {
char *address;
GSList *channels;
int printed:1;
time_t destroy;
} NETSPLIT_REC;