summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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?