diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-27 13:14:29 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:16 -0500 |
commit | 1bd2aa1fd6a16c2067255b936da071d451aee884 (patch) | |
tree | 1dc40dfbfd233e27bcdae4c90e1eff5ba8d122a0 /app/lib | |
parent | 64d5d1bec6ff18591ef4b105394a18cde087b53f (diff) |
[Command Tags] Skip processing if no prefix in body
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/command_tag/processor.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/lib/command_tag/processor.rb b/app/lib/command_tag/processor.rb index 4601fee91..6ca355687 100644 --- a/app/lib/command_tag/processor.rb +++ b/app/lib/command_tag/processor.rb @@ -39,6 +39,12 @@ class CommandTag::Processor end def process! + unless @text.include?('#!') && @text.match?(/^\s*(?:#{MENTIONS_OR_HASHTAGS_RE})?#!/) + process_inline_images! + @status.save! + return + end + reset_status_caches initialize_handlers! |