]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/factoids.rb
dice: restore + killed by ec5745fa7abd47b8ca12bd783b0759079dff9917
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / factoids.rb
index 0970684fda98ee8d86b455c18c67408a44c8e7ee..ba6e88453b7d40ac11018400fc1614b5c335227a 100644 (file)
@@ -349,7 +349,11 @@ class FactoidsPlugin < Plugin
       known = @factoids.grep(rx)
       reply = []
       if known.empty?
-        reply << _("I know nothing about %{words}" % params)
+        if params.key? :words
+          reply << _("I know nothing about %{words}" % params)
+        else params.key? :rx
+          reply << _("I know nothing matching %{rx}" % params)
+        end
       else
         max_facts = @bot.config['factoids.search_results']
         len = known.length