Thu, 31 May 2018 00:59:08 +0200
riddim.plugins.pubsub2room: Trim trailing whitespace
plugins/pubsub2room.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/pubsub2room.lua Sun May 27 17:34:33 2018 +0200 +++ b/plugins/pubsub2room.lua Thu May 31 00:59:08 2018 +0200 @@ -57,7 +57,7 @@ if not conf or not entry or not room then return end local message = conf.template:gsub("%${([^}]+)}", entry); - + -- Throttle to 1 message/second so we don't flood the room if os.time() - last_message_time > 0 then room:send_message(message);