mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
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:
parent
c39c27a1ff
commit
555a2bf929
6 changed files with 182 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue