summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-08 14:46:30 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-01-08 14:50:52 +0100
commit3aa60839f4d1168ed6901a2b3fd0a9d96e24fa34 (patch)
tree369411a073566edc6fecebcd74f74cc1d770ef18 /data
parentfad7eca91130783e810142127f7cb71ac89f7ffb (diff)
rot13: convert result to string
When core.reply_with_nick is active, m.reply expects the argument to be a String. Do the conversion explicitly.
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/rot13.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/rot13.rb b/data/rbot/plugins/rot13.rb
index 36155962..41767726 100644
--- a/data/rbot/plugins/rot13.rb
+++ b/data/rbot/plugins/rot13.rb
@@ -18,7 +18,7 @@ class RotPlugin < Plugin
end
def rot13(m, params)
- m.reply @bot.filter(:rot13, params[:string].to_s)
+ m.reply @bot.filter(:rot13, params[:string].to_s).to_s
end
end
plugin = RotPlugin.new