diff options
Diffstat (limited to 'data/rbot')
-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(" ")}) |