diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-12-11 12:04:15 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-12-11 12:04:15 +0000 |
commit | 3624ad6ffeed02d605c19aca7dcedd8c9d547fe4 (patch) | |
tree | 7a79c92b5df9574b682c973616724c604b9bfe69 | |
parent | 3ed665dddcd1bdeda85acc1161cd4c8d25aaf426 (diff) |
wheelfortune: spare one line when announcing
-rw-r--r-- | data/rbot/plugins/games/wheelfortune.rb | 11 |
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 |