From 2703330a19e813351e9c33241a59d6b7f54741df Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Thu, 18 Aug 2016 14:21:52 -0500 Subject: Fix behavior around commands with optional arguments --- app/services/slash_commands/interpret_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/services') diff --git a/app/services/slash_commands/interpret_service.rb b/app/services/slash_commands/interpret_service.rb index 0d7838055fe..9ac1124abc1 100644 --- a/app/services/slash_commands/interpret_service.rb +++ b/app/services/slash_commands/interpret_service.rb @@ -18,11 +18,11 @@ module SlashCommands content, commands = extractor.extract_commands(content, opts) - commands.each do |name, args| + commands.each do |name, arg| definition = self.class.command_definitions_by_name[name.to_sym] next unless definition - definition.execute(self, opts, args) + definition.execute(self, opts, arg) end [content, @updates] -- cgit v1.2.3