diff options
author | Timo Sirainen <cras@irssi.org> | 2000-05-25 16:40:25 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-05-25 16:40:25 +0000 |
commit | 555a2bf929e6a76609fc06f97de47a731d511f95 (patch) | |
tree | b8a2f195fd0c3ad2e20d7a0c9cf3f0dcfe8f3e2a /src/irc/core | |
parent | c39c27a1ff26bc6deee5335db85d3f993d2aca55 (diff) | |
download | irssi-555a2bf929e6a76609fc06f97de47a731d511f95.zip |
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
Diffstat (limited to 'src/irc/core')
-rw-r--r-- | src/irc/core/netsplit.c | 7 | ||||
-rw-r--r-- | src/irc/core/netsplit.h | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/irc/core/netsplit.c b/src/irc/core/netsplit.c index e6bb199c..34c478cf 100644 --- a/src/irc/core/netsplit.c +++ b/src/irc/core/netsplit.c @@ -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; } diff --git a/src/irc/core/netsplit.h b/src/irc/core/netsplit.h index c95b5c6f..6ea9cf3f 100644 --- a/src/irc/core/netsplit.h +++ b/src/irc/core/netsplit.h @@ -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; |