diff options
author | Valentin Batz <senneth@irssi.org> | 2004-10-14 16:41:02 +0000 |
---|---|---|
committer | senneth <senneth@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-10-14 16:41:02 +0000 |
commit | 5a7e889f4f12fa395f4338a0f300a54f05212cf3 (patch) | |
tree | c59c2eac73f697d49674b04a2f16b913c0b0db79 /src | |
parent | 2a0ba14c0c55fd2b902c1cd24360b55c72ac5885 (diff) | |
download | irssi-5a7e889f4f12fa395f4338a0f300a54f05212cf3.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/proxy/listen.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |