Fix "/away " not setting you away

This commit is contained in:
Pavel Djundik 2018-06-07 19:23:51 +03:00 committed by GitHub
parent 0a1a4fc68a
commit 730c266ea8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ exports.input = function(network, chan, cmd, args) {
let reason = "";
if (cmd === "away") {
reason = args.length > 0 ? args.join(" ") : " ";
reason = args.join(" ") || " ";
network.irc.raw("AWAY", reason);
} else { // back command