Permalink
Browse files

Fix failed !!

  • Loading branch information...
1 parent ae8333c commit 12361d3caddcd70f722ec9ac15979a10f7647df6 @janne janne committed Sep 18, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/flower.rb
View
3 lib/flower.rb
@@ -51,7 +51,6 @@ def say(message, options = {})
end
def respond_to(message_json)
- return if message_json[:internal] || from_self?(message_json)
Thread.new do
self.message = nil
message_json[:content].split("|").each do |content|
@@ -64,7 +63,7 @@ def respond_to(message_json)
command = match.shift || ""
Flower::Command.delegate_command(command.downcase, match.join(" "), users[message_json[:user].to_i], self)
end
- Flower::Command.trigger_listeners(content, users[message_json[:user].to_i], self)
+ Flower::Command.trigger_listeners(content, users[message_json[:user].to_i], self) unless message_json[:internal] || from_self?(message_json)
end
post(self.message, self.tags)
end

0 comments on commit 12361d3

Please sign in to comment.