From 730c266ea8d08376a8a2afdd735cf505de987b29 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Thu, 7 Jun 2018 19:23:51 +0300 Subject: [PATCH] Fix "/away " not setting you away --- src/plugins/inputs/away.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/inputs/away.js b/src/plugins/inputs/away.js index aa4d604b..6cce051c 100644 --- a/src/plugins/inputs/away.js +++ b/src/plugins/inputs/away.js @@ -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