# HG changeset patch # User Kim Alvefur # Date 1527721148 -7200 # Node ID 565c0c43b063009189ce6d57c3d2327667721251 # Parent 68dc84e72befe2bb1fab3d1c90f86034a774e752 riddim.plugins.pubsub2room: Trim trailing whitespace diff -r 68dc84e72bef -r 565c0c43b063 plugins/pubsub2room.lua --- 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);