summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-28 12:20:32 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-28 12:20:32 +0000
commitbfb9506b75a1cf8118364226bcb8945114e3771c (patch)
tree8f73c352556b13320a48e600361d3e926e9a60aa
parentf196a813db4d531ff6577adb88425e1dd606fb9a (diff)
lart plugin: ensure that the lart/praise being added/removed is a string
-rw-r--r--data/rbot/plugins/lart.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/rbot/plugins/lart.rb b/data/rbot/plugins/lart.rb
index 103becb1..fbc1f9e4 100644
--- a/data/rbot/plugins/lart.rb
+++ b/data/rbot/plugins/lart.rb
@@ -125,25 +125,25 @@ class LartPlugin < Plugin
end
def handle_addlart(m, params)
- @larts << params[:lart]
+ @larts << params[:lart].to_s
@changed = true
m.okay
end
def handle_rmlart(m, params)
- @larts.delete params[:lart]
+ @larts.delete params[:lart].to_s
@changed = true
m.okay
end
def handle_addpraise(m, params)
- @praises << params[:praise]
+ @praises << params[:praise].to_s
@changed = true
m.okay
end
def handle_rmpraise(m, params)
- @praises.delete params[:praise]
+ @praises.delete params[:praise].to_s
@changed = true
m.okay
end