summaryrefslogtreecommitdiff
path: root/lib/rbot/messagemapper.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-04 15:33:26 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-04 15:33:26 +0000
commitb1e2896b32af5971b19feac720956ba9d1395938 (patch)
tree35edf59c43422a634241c484e12d8c34699d0cfc /lib/rbot/messagemapper.rb
parent4ae70154824a0d2cae8a4296793b9a66ca7a7fb0 (diff)
Tuning of messagemapper debug output
Diffstat (limited to 'lib/rbot/messagemapper.rb')
-rw-r--r--lib/rbot/messagemapper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/messagemapper.rb b/lib/rbot/messagemapper.rb
index 144669d8..39692868 100644
--- a/lib/rbot/messagemapper.rb
+++ b/lib/rbot/messagemapper.rb
@@ -455,7 +455,7 @@ module Irc
matching = @regexp.match(m.message)
return nil, "#{m.message.inspect} doesn't match #{@template} (#{@regexp})" unless matching
- return nil, "#{m.message.inspect} only matches #{@template} (#{@regexp}) partially" unless matching[0] == m.message
+ return nil, "#{m.message.inspect} only matches #{@template} (#{@regexp}) partially: #{matching[0].inspect}" unless matching[0] == m.message
debug_match = matching[1..-1].collect{ |d| d.inspect}.join(', ')
debug "#{m.message.inspect} matched #{@regexp} with #{debug_match}"