Skip to content
Snippets Groups Projects
Verified Commit 3408e3d1 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Skip echoing empty messages

parent 8ef14ee8
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,8 @@ class MatrixBot
msgstr = message.content[:body]
msgstr.gsub!(/!echo\s*/, '')
return if msgstr.empty?
room = client.ensure_room message.room_id
sender = client.get_user message.sender
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment