projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implicitly support abbreviating commands
[mudpy.git]
/
mudpy
/
command.py
diff --git
a/mudpy/command.py
b/mudpy/command.py
index
1138aa8
..
95fb793
100644
(file)
--- a/
mudpy/command.py
+++ b/
mudpy/command.py
@@
-148,10
+148,7
@@
def help(actor, parameters):
if parameters and actor.owner:
# is the command word one for which we have data?
if parameters and actor.owner:
# is the command word one for which we have data?
- if parameters in actor.universe.groups["command"]:
- command = actor.universe.groups["command"][parameters]
- else:
- command = None
+ command = mudpy.misc.find_command(parameters)
# only for allowed commands
if actor.can_run(command):
# only for allowed commands
if actor.can_run(command):