From 3624ad6ffeed02d605c19aca7dcedd8c9d547fe4 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 11 Dec 2007 12:04:15 +0000 Subject: wheelfortune: spare one line when announcing --- data/rbot/plugins/games/wheelfortune.rb | 11 +++++++++-- 1 file 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 -- cgit v1.2.3