diff options
author | Timo Sirainen <cras@irssi.org> | 2000-05-10 12:47:22 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-05-10 12:47:22 +0000 |
commit | ae5c4164c8a8c1a552b6bccca99f24ce8a728585 (patch) | |
tree | 07d4566ff0c094e9941df15350a09aebf34928ba /src/fe-common/irc | |
parent | d729474195913a37a4a5f32943d7b213654cf538 (diff) | |
download | irssi-ae5c4164c8a8c1a552b6bccca99f24ce8a728585.zip |
Netsplit displays the IRC network where it happened
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@211 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r-- | src/fe-common/irc/fe-netsplit.c | 4 | ||||
-rw-r--r-- | src/fe-common/irc/module-formats.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/irc/fe-netsplit.c b/src/fe-common/irc/fe-netsplit.c index b13ae437..43a4f1e0 100644 --- a/src/fe-common/irc/fe-netsplit.c +++ b/src/fe-common/irc/fe-netsplit.c @@ -26,9 +26,9 @@ #include "levels.h" #include "netsplit.h" -static void sig_netsplit_servers(NETSPLIT_SERVER_REC *rec) +static void sig_netsplit_servers(IRC_SERVER_REC *server, NETSPLIT_SERVER_REC *rec) { - printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_NETSPLIT, rec->server, rec->destserver); + printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_NETSPLIT, rec->server, rec->destserver, server->tag); } static void split_print(const char *nick, NETSPLIT_REC *rec) diff --git a/src/fe-common/irc/module-formats.c b/src/fe-common/irc/module-formats.c index b1040d40..0319bc34 100644 --- a/src/fe-common/irc/module-formats.c +++ b/src/fe-common/irc/module-formats.c @@ -42,7 +42,7 @@ FORMAT_REC fecommon_irc_formats[] = { "setupserver_header", "Server Port IRC Net Settings", 0 }, { "setupserver_line", "%|$[!20]0 $[5]1 $[10]2 $3", 4, { 0, 1, 0, 0 } }, { "setupserver_footer", "", 0 }, - { "netsplit", "%RNetsplit%n detected between servers %_$0%_ and %_$1%_%:Use /NETSPLIT to see who left", 2, { 0, 0 } }, + { "netsplit", "[%_$2%_] %RNetsplit%n detected between servers %_$0%_ and %_$1%_%:Use /NETSPLIT to see who left", 3, { 0, 0, 0 } }, { "no_netsplits", "There are no net splits", 0 }, { "netsplits_header", "Nick Channel Server Splitted server", 0 }, { "netsplits_line", "$[9]0 $[10]1 $[20]2 $3", 4, { 0, 0, 0, 0 } }, |