mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-22 22:04:18 +00:00
???
This commit is contained in:
parent
a9740613fb
commit
d76ec88c38
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -589,7 +589,7 @@ def join(bot, update):
|
||||||
game.message(bot, s.error_player_already_joined)
|
game.message(bot, s.error_player_already_joined)
|
||||||
return
|
return
|
||||||
# Giocatore senza username
|
# Giocatore senza username
|
||||||
if not (hasattr(update.message, "from_user") and 'username' in update.message.from_user):
|
if update.message.from_user["username"] is not None:
|
||||||
game.message(bot, s.error_no_username)
|
game.message(bot, s.error_no_username)
|
||||||
return
|
return
|
||||||
p = Player(update.message.from_user['id'], update.message.from_user['username'])
|
p = Player(update.message.from_user['id'], update.message.from_user['username'])
|
||||||
|
|
Loading…
Reference in a new issue