diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-08-18 22:21:52 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-08-18 22:29:49 +0300 |
commit | 2703330a19e813351e9c33241a59d6b7f54741df (patch) | |
tree | 0caa4c5a119b165fd4fe9e3712f0de5caffa403e /app | |
parent | 6f2f2a6baae128cd4f8111d91bdcfb7b76e39b97 (diff) |
Fix behavior around commands with optional arguments
Diffstat (limited to 'app')
-rw-r--r-- | app/services/slash_commands/interpret_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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] |