From b0c7f5f17b65043a796f8b3f4dc27cbfa287e087 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 4 Nov 2007 20:37:02 +0000 Subject: factoids plugin: actually output metadata in long form of Factoid#to_s --- data/rbot/plugins/factoids.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/factoids.rb b/data/rbot/plugins/factoids.rb index 9d01a75a..f9c64eba 100644 --- a/data/rbot/plugins/factoids.rb +++ b/data/rbot/plugins/factoids.rb @@ -28,14 +28,14 @@ class FactoidsPlugin < Plugin end meta = "" metadata = [] - if fact[:who] - metadata << _("from %{who}" % fact.to_hash) + if @hash[:who] + metadata << _("from %{who}" % @hash) end - if fact[:when] - metadata << _("on %{when}" % fact.to_hash) + if @hash[:when] + metadata << _("on %{when}" % @hash) end - if fact[:where] - metadata << _("in %{where}" % fact.to_hash) + if @hash[:where] + metadata << _("in %{where}" % @hash) end unless metadata.empty? meta << _(" [learnt %{data}]" % {:data => metadata.join(" ")}) -- cgit v1.2.3