mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02: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:
parent
2a0ba14c0c
commit
5a7e889f4f
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue