Merge pull request #2524 from thelounge/xpaw/fix-away-cmd

Fix "/away " not setting you away
This commit is contained in:
Jérémie Astori 2018-06-07 23:23:56 -04:00 committed by GitHub
commit 8a7212a04f
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 = ""; let reason = "";
if (cmd === "away") { if (cmd === "away") {
reason = args.length > 0 ? args.join(" ") : " "; reason = args.join(" ") || " ";
network.irc.raw("AWAY", reason); network.irc.raw("AWAY", reason);
} else { // back command } else { // back command