diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-03-24 11:47:31 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-03-24 11:47:31 +0100 |
commit | 7ab65c2443f44df753b3b6d2b186b5fd0d17857c (patch) | |
tree | 89eeb231c3cca4415a30d050ad0750b7d752b82f /data/rbot/plugins/factoids.rb | |
parent | 17b49c169599b1f5d8a1392451f0c1d174fd15ae (diff) |
factoids: fix 'facts search'
Diffstat (limited to 'data/rbot/plugins/factoids.rb')
-rw-r--r-- | data/rbot/plugins/factoids.rb | 2 |
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]) |