Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix a bug that, surprisingly, had 0 negative effect

  • Loading branch information...
commit 4bfb212d2a3218ce20325de17ac018ad5491c902 1 parent b3aab5e
@pbrisbin authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/basil/plugins.rb
View
6 lib/basil/plugins.rb
@@ -83,10 +83,10 @@ def initialize(type, regex)
# variables and call our execute method.
def triggered?(msg)
if type == :email_checker
- matcher = ->(m) { regex.nil? || msg['Subject'] =~ regex }
- coercer = ->(m) { Message.new(Config.me, msg['From'], msg['From'], msg.body, nil) }
+ matcher = ->(m) { regex.nil? || m['Subject'] =~ regex }
+ coercer = ->(m) { Message.new(Config.me, m['From'], m['From'], m.body, nil) }
else
- matcher = ->(m) { regex.nil? || msg.text =~ regex }
+ matcher = ->(m) { regex.nil? || m.text =~ regex }
end
if matcher.call(msg)
Please sign in to comment.
Something went wrong with that request. Please try again.