From 5a7e889f4f12fa395f4338a0f300a54f05212cf3 Mon Sep 17 00:00:00 2001 From: Valentin Batz Date: Thu, 14 Oct 2004 16:41:02 +0000 Subject: Fixed bug 120 where proxy doesn't set the server_rec->away_reason git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3319 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/proxy/listen.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/irc/proxy/listen.c') diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c index ea994dc0..b240a4b5 100644 --- a/src/irc/proxy/listen.c +++ b/src/irc/proxy/listen.c @@ -280,6 +280,12 @@ static void handle_client_cmd(CLIENT_REC *client, char *cmd, char *args, g_free(params); } else if (strcmp(cmd, "PING") == 0) { proxy_redirect_event(client, "ping", 1, NULL, TRUE); + } else if (strcmp(cmd, "AWAY") == 0) { + /* set the away reason */ + if (args != NULL) { + g_free(client->server->away_reason); + client->server->away_reason = g_strdup(args); + } } irc_send_cmd(client->server, data); -- cgit v1.2.3