diff options
-rw-r--r-- | data/rbot/plugins/factoids.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/data/rbot/plugins/factoids.rb b/data/rbot/plugins/factoids.rb index e50cc73d..37db9a4a 100644 --- a/data/rbot/plugins/factoids.rb +++ b/data/rbot/plugins/factoids.rb @@ -161,8 +161,11 @@ class FactoidsPlugin < Plugin :who => m.source.fullform, :where => m.channel.to_s ) - if @factoids.index(factoid) - m.reply _("I already know that %{factoid}" % { :factoid => factoid }) + if idx = @factoids.index(factoid) + m.reply _("I already know that %{factoid} [#%{idx}]" % { + :factoid => factoid, + :idx => idx + }) else @factoids << factoid @changed = true |