From d4ef1bdd03c67c168f9b539ecfd070e63aecfa01 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 20 Oct 2001 21:09:17 +0000 Subject: [PATCH] When printing server disconnection texts, use the server parameter for printformat() so the texts go to correct windows. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1865 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-server.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fe-common/core/fe-server.c b/src/fe-common/core/fe-server.c index b50efd0a..11fea23b 100644 --- a/src/fe-common/core/fe-server.c +++ b/src/fe-common/core/fe-server.c @@ -258,10 +258,10 @@ static void sig_connect_failed(SERVER_REC *server, gchar *msg) if (msg == NULL) { /* no message so this wasn't unexpected fail - send connection_lost message instead */ - printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, + printformat(server, NULL, MSGLEVEL_CLIENTNOTICE, TXT_CONNECTION_LOST, server->connrec->address); } else { - printformat(NULL, NULL, MSGLEVEL_CLIENTERROR, + printformat(server, NULL, MSGLEVEL_CLIENTERROR, TXT_CANT_CONNECT, server->connrec->address, server->connrec->port, msg); } } @@ -270,7 +270,7 @@ static void sig_server_disconnected(SERVER_REC *server) { g_return_if_fail(server != NULL); - printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, + printformat(server, NULL, MSGLEVEL_CLIENTNOTICE, TXT_CONNECTION_LOST, server->connrec->address); } @@ -278,7 +278,7 @@ static void sig_server_quit(SERVER_REC *server, const char *msg) { g_return_if_fail(server != NULL); - printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, + printformat(server, NULL, MSGLEVEL_CLIENTNOTICE, TXT_SERVER_QUIT, server->connrec->address, msg); } @@ -286,7 +286,7 @@ static void sig_server_lag_disconnected(SERVER_REC *server) { g_return_if_fail(server != NULL); - printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, + printformat(server, NULL, MSGLEVEL_CLIENTNOTICE, TXT_LAG_DISCONNECTED, server->connrec->address, time(NULL)-server->lag_sent); }