home
·
contact
·
privacy
projects
/
plomrogue2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
03caeaf
)
Fix weird BECOME_ADMIN code.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 14 Dec 2020 22:03:33 +0000
(23:03 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 14 Dec 2020 22:03:33 +0000
(23:03 +0100)
plomrogue/commands.py
patch
|
blob
|
history
diff --git
a/plomrogue/commands.py
b/plomrogue/commands.py
index 5b8bb28293fbff0b5baa5a37a69f6b14fc499e68..ca5c37c60ab635056cfd0bbdd11b662cc87232b7 100644
(file)
--- a/
plomrogue/commands.py
+++ b/
plomrogue/commands.py
@@
-68,7
+68,7
@@
def cmd_LOGIN(game, nick, connection_id):
cmd_LOGIN.argtypes = 'string'
def cmd_BECOME_ADMIN(game, password, connection_id):
cmd_LOGIN.argtypes = 'string'
def cmd_BECOME_ADMIN(game, password, connection_id):
- player = game.
thing_types['Player'](game
)
+ player = game.
get_player(connection_id
)
if not player:
raise GameError('need to be logged in for this')
if password in game.admin_passwords:
if not player:
raise GameError('need to be logged in for this')
if password in game.admin_passwords: