metadata << _("in %{where}" % @hash)
end
unless metadata.empty?
- meta << _(" [learnt %{data}]" % {:data => metadata.join(" ")})
+ meta << _(" [%{data}]" % {:data => metadata.join(" ")})
end
return fact+meta
end
: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
m.okay
+ fact(m, :index => @factoids.length.to_s)
end
end