mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Merge pull request #142 from dequis/away-with-no-reason
irc_server_send_away: don't send empty param if there's no away reason
This commit is contained in:
commit
a2121efed3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user