From 9c10efa994abb057b5e1a75757ee1570e2a6aa9a Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 3 Jul 2008 14:38:49 +0200 Subject: UNO plugin: don't show user cards if the user is not playing --- data/rbot/plugins/games/uno.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'data/rbot/plugins/games/uno.rb') diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb index 12b77f6e..ba3b1a90 100644 --- a/data/rbot/plugins/games/uno.rb +++ b/data/rbot/plugins/games/uno.rb @@ -592,6 +592,7 @@ class UnoGame def show_user_cards(player) p = Player === player ? player : get_player(player) + return unless p notify p, _('Your cards: %{cards}') % { :cards => p.cards.join(' ') } -- cgit v1.2.3