X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fgames%2Fazgame.rb;h=572684d912d68c1fc1d5ae2ea8faa16f666b3deb;hb=783ffa4235330029d661752b1023db635b26f2b3;hp=cb95228d8c0073cec387a726657cd8f5ecefeeeb;hpb=b0a372c2e93194a5573197e173c3e8409df5e25a;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/games/azgame.rb b/data/rbot/plugins/games/azgame.rb index cb95228d..572684d9 100644 --- a/data/rbot/plugins/games/azgame.rb +++ b/data/rbot/plugins/games/azgame.rb @@ -150,7 +150,7 @@ class AzGamePlugin < Plugin }, } - @autoadd_base = "#{@bot.botclass}/azgame/autoadd-" + @autoadd_base = datafile "autoadd-" end def initialize_wordlist(params) @@ -355,10 +355,10 @@ class AzGamePlugin < Plugin if wc[word].key?(:when) tr = _("%{word} learned from %{user} on %{date}") % {:word => word, :user => wc[word][:who], :date => wc[word][:when]} else - tr = _("%{word} learned from %{user}") % {:word => word, :user => wc[word][:who]} + tr = _("%{word} learned from %{user}") % {:word => word, :user => wc[word][:who]} end m.reply tr - when :delete + when :delete if pars.empty? m.reply _("provide a word") return