diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-01-22 03:09:07 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-01-22 03:09:07 +0100 |
commit | 9de0a5433e12ca59ced238c99c68efad070aa7c7 (patch) | |
tree | 4614961fbfc08725d43775e2408a5ffebd3fb0f7 /data | |
parent | 81e0b9c7405c3731f6df1e50f6b32a35c224dfa7 (diff) |
dice, 8ball: always add the nick to the reply
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/dice.rb | 6 | ||||
-rw-r--r-- | data/rbot/plugins/eightball.rb | 2 |
2 files changed, 4 insertions, 4 deletions
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 diff --git a/data/rbot/plugins/eightball.rb b/data/rbot/plugins/eightball.rb index 64748490..d28c1cc8 100644 --- a/data/rbot/plugins/eightball.rb +++ b/data/rbot/plugins/eightball.rb @@ -10,7 +10,7 @@ class EightBallPlugin < Plugin end def eightball(m, params) answers = @answers[rand(@answers.length)] - action = "shakes the magic 8-ball... #{answers}" + action = "shakes the magic 8-ball for #{m.source} ... #{answers}" @bot.action m.replyto, action end end |