summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/games
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-07-03 14:38:49 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-07-03 14:38:49 +0200
commit9c10efa994abb057b5e1a75757ee1570e2a6aa9a (patch)
tree81f3f34b9cfea7857c3a2f2dc09c05c3e019740c /data/rbot/plugins/games
parentee18b5e2d66639bebc123b2bc01f968ea1b003b4 (diff)
UNO plugin: don't show user cards if the user is not playing
Diffstat (limited to 'data/rbot/plugins/games')
-rw-r--r--data/rbot/plugins/games/uno.rb1
1 files changed, 1 insertions, 0 deletions
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(' ')
}