From 2ab28aec9da49cc07de866148573307fdcd6cae4 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 17 Aug 2020 20:53:48 -0500 Subject: [Command Tags] Handle "i am"/"we are" aliases for footers --- app/lib/command_tag/command/footer_tools.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/lib') 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 -- cgit