about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-17 20:53:48 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:19 -0500
commit2ab28aec9da49cc07de866148573307fdcd6cae4 (patch)
tree07082b2574dc4fb579a45f792b577ae1ebe04c9e
parenteec309f9dc366ac73d5c74d0da7ec087c70a51c9 (diff)
[Command Tags] Handle "i am"/"we are" aliases for footers
-rw-r--r--app/lib/command_tag/command/footer_tools.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/lib/command_tag/command/footer_tools.rb b/app/lib/command_tag/command/footer_tools.rb
index 2fada5a1d..f517b40bf 100644
--- a/app/lib/command_tag/command/footer_tools.rb
+++ b/app/lib/command_tag/command/footer_tools.rb
@@ -28,6 +28,14 @@ module CommandTag::Command::FooterTools
     @status.footer = var(var_name)[0]
   end
 
+  # Monsterfork v1 familiarity.
+  def handle_i_before_save(args)
+    return if args.blank?
+
+    handle_footer_before_save(args.unshift) if %w(am are).include?(normalize(args[0]))
+  end
+
+  alias handle_we_before_save           handle_i_before_save
   alias handle_signature_before_save    handle_footer_before_save
   alias handle_sign_before_save         handle_footer_before_save
   alias handle_sig_before_save          handle_footer_before_save