summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-02-13 00:16:23 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-02-13 00:16:23 +0100
commit27ee4fabaebdb1f78b1eb6cfb31c43f1dc5a7f49 (patch)
tree0a51845f0f54277e7844e97646b17f91dfe1144c
parent21c492a38db47c4a50329f6cd734fba0b88b714d (diff)
factoids plugin: don't be too verbose when learning facts
-rw-r--r--data/rbot/plugins/factoids.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/data/rbot/plugins/factoids.rb b/data/rbot/plugins/factoids.rb
index 2d9596e7..0279b90a 100644
--- a/data/rbot/plugins/factoids.rb
+++ b/data/rbot/plugins/factoids.rb
@@ -240,8 +240,7 @@ class FactoidsPlugin < Plugin
else
@factoids << factoid
@changed = true
- m.okay
- fact(m, :index => @factoids.length.to_s)
+ m.reply _("okay, learned fact #%{num}: %{fact}" % { :num => @factoids.length, :fact => @factoids.last})
parse_for_trigger(factoid)
end
end