summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfranz <Franz.Netykafka@runbox.com>2009-06-15 21:27:41 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-08-26 23:31:37 +0200
commit0b95114018f49dde6078e88935db54b2c8f20dd5 (patch)
tree5bc3da56262cd1e93c87b05710a4148fc80bb5f0
parent4cd19a0f2630758d4f595fc072f012baafffac92 (diff)
ruby 1.9: fix Integer(nil)
in 1.9, Integer(nil) raises TypeError, so we change "%d" to "%s"
-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 ca076e4a..c222ee71 100644
--- a/lib/rbot/messagemapper.rb
+++ b/lib/rbot/messagemapper.rb
@@ -384,7 +384,7 @@ class Bot
mul = multi? ? " multi" : " single"
opt = optional? ? " optional" : " needed"
if @regexp
- reg = " regexp=%s index=%d" % [@regexp, @index]
+ reg = " regexp=%s index=%s" % [@regexp, @index]
else
reg = nil
end