From 3aa60839f4d1168ed6901a2b3fd0a9d96e24fa34 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 8 Jan 2009 14:46:30 +0100 Subject: 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. --- data/rbot/plugins/rot13.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3