summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/games/uno.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb
index 4eab72c2..f493b5f8 100644
--- a/data/rbot/plugins/games/uno.rb
+++ b/data/rbot/plugins/games/uno.rb
@@ -752,6 +752,12 @@ class UnoGame
def replace_player(old, new)
# The new user
user = channel.get_user(new)
+ if not user
+ announce _("there is no '%{nick}' here") % {
+ :nick => new
+ }
+ return
+ end
if p = get_player(user)
announce _("%{p} is already playing %{uno} here") % {
:p => p, :uno => UNO