diff options
author | dequis <dx@dxzone.com.ar> | 2014-09-09 21:14:07 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2014-09-09 21:14:07 -0300 |
commit | d68ee06aa4867a6fda7ba4f3fb254a7228edba1b (patch) | |
tree | 24e46877025eb406fb69ebdc9d39a6bbaf30bf06 | |
parent | 503cbeb330331e9ab6cf31af453f6232b10b12e2 (diff) | |
download | irssi-d68ee06aa4867a6fda7ba4f3fb254a7228edba1b.zip |
irc_server_send_away: don't send empty param if there's no away reason
-rw-r--r-- | src/irc/core/irc-servers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 13784f88..eec913d7 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -484,9 +484,11 @@ void irc_server_send_away(IRC_SERVER_REC *server, const char *reason) if (*reason != '\0') { server->away_reason = g_strdup(reason); reason = recoded = recode_out(SERVER(server), reason, NULL); + irc_send_cmdv(server, "AWAY :%s", reason); + } else { + irc_send_cmdv(server, "AWAY"); } - irc_send_cmdv(server, "AWAY :%s", reason); } g_free(recoded); } |