summaryrefslogtreecommitdiff
path: root/src/fe-common/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-11-28 23:19:03 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-11-28 23:19:03 +0000
commited444e1c5f2ca9f6b4bfa6b73fa1193789d30c71 (patch)
tree8c23f5ea9a15bd9a7b83356adff8d0249490374d /src/fe-common/irc
parentfb1aa67fc0902fa97cd8059d1df66694c507e98a (diff)
downloadirssi-ed444e1c5f2ca9f6b4bfa6b73fa1193789d30c71.zip
/NETSPLIT now prints the server tag as well.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3030 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r--src/fe-common/irc/fe-netsplit.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fe-common/irc/fe-netsplit.c b/src/fe-common/irc/fe-netsplit.c
index 061557ca..7e5d602e 100644
--- a/src/fe-common/irc/fe-netsplit.c
+++ b/src/fe-common/irc/fe-netsplit.c
@@ -299,7 +299,7 @@ static void split_get(void *key, NETSPLIT_REC *rec, GSList **list)
(GCompareFunc) split_equal);
}
-static void split_print(NETSPLIT_REC *rec)
+static void split_print(NETSPLIT_REC *rec, SERVER_REC *server)
{
NETSPLIT_CHAN_REC *chan;
char *chanstr;
@@ -309,7 +309,7 @@ static void split_print(NETSPLIT_REC *rec)
g_strconcat(chan->op ? "@" :
(chan->voice ? "+" : ""), chan->name, NULL);
- printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_NETSPLITS_LINE,
+ printformat(server, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_NETSPLITS_LINE,
rec->nick, chanstr, rec->server->server,
rec->server->destserver);
@@ -324,19 +324,19 @@ static void cmd_netsplit(const char *data, IRC_SERVER_REC *server)
CMD_IRC_SERVER(server);
if (server->split_servers == NULL) {
- printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
+ printformat(server, NULL, MSGLEVEL_CLIENTNOTICE,
IRCTXT_NO_NETSPLITS);
return;
}
- printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_NETSPLITS_HEADER);
+ printformat(server, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_NETSPLITS_HEADER);
list = NULL;
g_hash_table_foreach(server->splits, (GHFunc) split_get, &list);
- g_slist_foreach(list, (GFunc) split_print, NULL);
+ g_slist_foreach(list, (GFunc) split_print, server);
g_slist_free(list);
- printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_NETSPLITS_FOOTER);
+ printformat(server, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_NETSPLITS_FOOTER);
}
static void read_settings(void)