Sat, 10 Apr 2021 00:25:44 +0200
clix.raw: Handle (ignore, successfully) read timeouts on stdin
So that net.server doesn't get upset if you're not typing something
regularly.
short_opts.h = "history"; return function (opts, args) if opts.short_help then print("Receive and display XMPP messages"); return; end local function on_message(message) local body = message:get_child("body"); local delay = message:get_child("delay", "urn:xmpp:delay"); if body and (not delay or opts.history) then print(body:get_text()); end end local function on_connect(conn) conn:hook("message", on_message); end clix_connect(opts, on_connect); end