diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-04 20:37:02 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-04 20:37:02 +0000 |
commit | b0c7f5f17b65043a796f8b3f4dc27cbfa287e087 (patch) | |
tree | 8e98f99da612f65f1ad1d90262c2595309b8204f /data | |
parent | f17a96a21a233945ea425c51176446abbb5c388a (diff) |
factoids plugin: actually output metadata in long form of Factoid#to_s
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/factoids.rb | 12 |
1 files changed, 6 insertions, 6 deletions
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(" ")}) |