summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-02 15:48:47 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-02 15:48:47 +0000
commit7050ca90b1868a01e8c1a14b21a1001a125d925c (patch)
treec4a7150e9081660554c57712e394e01738be8a72
parent298e8b2908980822908c4f8bc4fda6d7413e1bd5 (diff)
In the new message mapper code, fail unconditionally when an entry doesn't match its requirements. This is sub-optimal: the requirements should be included in the generated regular expression.
-rw-r--r--lib/rbot/messagemapper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rbot/messagemapper.rb b/lib/rbot/messagemapper.rb
index ec465e81..f074dd20 100644
--- a/lib/rbot/messagemapper.rb
+++ b/lib/rbot/messagemapper.rb
@@ -346,11 +346,11 @@ module Irc
if matching[i]
value = matching[i]
unless passes_requirements?(item, value)
- if @defaults.has_key?(item)
- value == @defaults[item]
- else
+ # if @defaults.has_key?(item)
+ # value = @defaults[item]
+ # else
return nil, requirements_for(item)
- end
+ # end
end
else
value = @defaults[item]