X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fdice.rb;h=5de1af8e76220cedfa08caae3b7a19ce8cbdb430;hb=16336b4a240a4265d1f2df1e30d7b68d3a924287;hp=85e98f36a7c7a8f6cdfc47a8c9a15fce4b7718d1;hpb=ec5745fa7abd47b8ca12bd783b0759079dff9917;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/dice.rb b/data/rbot/plugins/dice.rb index 85e98f36..5de1af8e 100644 --- a/data/rbot/plugins/dice.rb +++ b/data/rbot/plugins/dice.rb @@ -100,14 +100,14 @@ class DicePlugin < Plugin dc, ds = dice.split(/d/) # check sides if ds.to_i > @bot.config['dice.max_sides'] - m.reply "sorry, don't have any dices with more than %u sides" % @bot.config['dice.max_sides'] + m.reply "sorry, don't have any dices with more than %u sides" % @bot.config['dice.max_sides'], :nick => true return end # We use .max with 1 so that specs such as d6 count as 1 and not as 0 nr += [dc.to_i, 1].max } if nr > @bot.config['dice.max_dices'] - m.reply "can't handle more than %u dices" % @bot.config['dice.max_dices'] + m.reply "can't handle more than %u dices" % @bot.config['dice.max_dices'], :nick => true return end @@ -123,7 +123,7 @@ class DicePlugin < Plugin t = t + tmp.get_view end t.chop! - m.reply(r.to_s + " || " + m.params + ": " + t) + m.reply(r.to_s + " || " + m.params + ": " + t, :nick => true) end end plugin = DicePlugin.new