diff options
author | Timo Sirainen <cras@irssi.org> | 2001-10-20 21:09:17 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-10-20 21:09:17 +0000 |
commit | d4ef1bdd03c67c168f9b539ecfd070e63aecfa01 (patch) | |
tree | 948e556ee874cef35692d0c032f56f521e37b812 /src | |
parent | 8433d560f0591a2dd3c38395e0f12f5b7495869c (diff) | |
download | irssi-d4ef1bdd03c67c168f9b539ecfd070e63aecfa01.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/fe-server.c | 10 |
1 files 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); } |