# HG changeset patch # User Kim Alvefur # Date 1618006865 -7200 # Node ID 014e73c329c57305099f056538c3eca6d604202b # Parent 27a9f28724d3de754094634d594fa9e4875172ae clix.raw: Linearise condition Goal of having the 'send_xml' string always exist in one place, so we can do things with it regardless of where it came from. diff -r 27a9f28724d3 -r 014e73c329c5 clix/raw.lua --- a/clix/raw.lua Mon Feb 08 22:59:49 2021 +0100 +++ b/clix/raw.lua Sat Apr 10 00:21:05 2021 +0200 @@ -110,11 +110,10 @@ onincoming = on_incoming, ondisconnect = function () end }, "*l"); else - if send_xml then - conn:send(send_xml); - else - conn:send(table.concat(args, " ")); + if not send_xml then + send_xml = table.concat(args, " "); end + conn:send(send_xml); conn:close(); end