1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

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
This commit is contained in:
Valentin Batz 2004-10-14 16:41:02 +00:00 committed by senneth
parent 2a0ba14c0c
commit 5a7e889f4f

View File

@ -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);