home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9a4396
)
Server: Fix bug in action_exists().
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 17 Feb 2016 00:56:52 +0000
(
01:56
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 17 Feb 2016 00:56:52 +0000
(
01:56
+0100)
server/commands.py
patch
|
blob
|
history
diff --git
a/server/commands.py
b/server/commands.py
index 31bbea633023bca3d5edff3e5e29b7fedc9d12f4..c17635e3f369d7119f10c0c15cd89b308b5d0ef2 100644
(file)
--- a/
server/commands.py
+++ b/
server/commands.py
@@
-429,7
+429,7
@@
def play_wait():
def action_exists(action):
matching_actions = [x for x in world_db["ThingActions"]
if world_db["ThingActions"][x]["TA_NAME"] == action]
- if len(matching_actions) > 1:
+ if len(matching_actions) >
=
1:
return True
print("No appropriate ThingAction defined.")
return False