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 5b5e2b72..0970684f 100644
--- a/data/rbot/plugins/factoids.rb
+++ b/data/rbot/plugins/factoids.rb
@@ -341,7 +341,7 @@ class FactoidsPlugin < Plugin
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?
+ unless params.key? :words and not params[:words].empty?
rx = Regexp.new(params[:rx].to_s, true)
else
rx = words2rx(params[:words])