Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Direct messages where they should go

  • Loading branch information...
commit 76084bc1832fab2d49110c9d4312a6d7a2e022c3 1 parent 4971bd4
@radar radar authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 leaves/logga/controller.rb
View
6 leaves/logga/controller.rb
@@ -82,15 +82,15 @@ def lookup_command(stem, sender, reply_to, msg, opts={})
msg = msg.split(" ")[0..-1].map { |a| a.split("#") }.flatten!
# It's a constant! Oh... and there's nothing else in the string!
if /^[A-Z]/.match(msg.first) && msg.size == 1
- object = find_constant(stem, sender, reply_to, msg.first)
+ object = find_constant(stem, sender, reply_to, msg.first, opts)
# It's a method!
else
# Right, so they only specified one argument. Therefore, we look everywhere.
if msg.first == msg.last
- object = find_method(stem, sender, reply_to, msg)
+ object = find_method(stem, sender, reply_to, msg, opts)
# Left, so they specified two arguments. First is probably a constant, so let's find that!
else
- object = find_method(stem, sender, reply_to, msg.last, msg.first)
+ object = find_method(stem, sender, reply_to, msg.last, msg.first, opts)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.