diff options
-rw-r--r-- | data/rbot/plugins/games/uno.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb index 25c9bdfc..dc8de03e 100644 --- a/data/rbot/plugins/games/uno.rb +++ b/data/rbot/plugins/games/uno.rb @@ -1157,6 +1157,14 @@ class UnoPlugin < Plugin scores << [v.won.inject(0) { |s, w| s+=w.score }, k] end + if wins.empty? + m.reply(_("no %{uno} games were completed here") % { + :uno => UnoGame::UNO + }) + return + end + + if n = p[:scorenum] msg = _("%{uno} %{num} highest scores: ") % { :uno => UnoGame::UNO, :num => p[:scorenum] |