summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-11 12:04:15 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-12-11 12:04:15 +0000
commit3624ad6ffeed02d605c19aca7dcedd8c9d547fe4 (patch)
tree7a79c92b5df9574b682c973616724c604b9bfe69
parent3ed665dddcd1bdeda85acc1161cd4c8d25aaf426 (diff)
wheelfortune: spare one line when announcing
-rw-r--r--data/rbot/plugins/games/wheelfortune.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/data/rbot/plugins/games/wheelfortune.rb b/data/rbot/plugins/games/wheelfortune.rb
index 07238cb0..dca9331a 100644
--- a/data/rbot/plugins/games/wheelfortune.rb
+++ b/data/rbot/plugins/games/wheelfortune.rb
@@ -42,8 +42,15 @@ class WoFQA
end
def announcement
- ret = self.catclue << "\n"
- ret << _("Letters called so far: ") << @used.join(" ") << "\n" unless @used.empty?
+ ret = self.catclue
+ if !@used.empty?
+ ret << _(" [Letters called so far: %{red}%{letters}%{nocolor}]") % {
+ :red => Irc.color(:red),
+ :letters => @used.join(" "),
+ :nocolor => Irc.color()
+ }
+ end
+ ret << "\n"
ret << @hint.join
end