summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-02-12 23:52:37 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-02-12 23:52:37 +0100
commitd7df65437c3328141ae6faf372d334b9708fe078 (patch)
tree275cb41f786f2a583b17da2d641d9ca3e9a05b82 /data
parentb4a2acb36685b6aeb4e257036cb32175a9aa8b0e (diff)
factoids plugin: options to facts() method may be nil, not just empty
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/factoids.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/factoids.rb b/data/rbot/plugins/factoids.rb
index da437c84..2a75fd52 100644
--- a/data/rbot/plugins/factoids.rb
+++ b/data/rbot/plugins/factoids.rb
@@ -289,7 +289,7 @@ class FactoidsPlugin < Plugin
def facts(m, params)
total = @factoids.length
- if params[:words].empty? and params[:rx].empty?
+ if params[:words].nil_or_empty? and params[:rx].nil_or_empty?
m.reply _("I know %{total} facts" % { :total => total })
else
if params[:words].empty?