From 7ab65c2443f44df753b3b6d2b186b5fd0d17857c Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 24 Mar 2009 11:47:31 +0100 Subject: factoids: fix 'facts search' --- data/rbot/plugins/factoids.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- cgit v1.2.3