diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-01-08 14:46:30 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-01-08 14:50:52 +0100 |
commit | 3aa60839f4d1168ed6901a2b3fd0a9d96e24fa34 (patch) | |
tree | 369411a073566edc6fecebcd74f74cc1d770ef18 /data/rbot | |
parent | fad7eca91130783e810142127f7cb71ac89f7ffb (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/rbot')
-rw-r--r-- | data/rbot/plugins/rot13.rb | 2 |
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 |