festivecasual / sigma-mud

Experimental MUD server in Python
0 stars 0 forks source link

Handler error reporting using args[] #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use an abbreviated command form (like 'ge' for 'get')
2. Do not complete a proper command (just 'ge', no direct object)

What is the expected output? What do you see instead?
-  Should say 'Get what?' but actually says 'Ge what?'

Instead of using args[0].title() to repeat commands in the reply, we should be 
using mapped.title() (data["mapped"]).

Any fixes related to this, as well as handlers already using the proper method, 
should be unit-tested.

Original issue reported on code.google.com by bmcca...@gmail.com on 7 Sep 2010 at 7:42

GoogleCodeExporter commented 9 years ago
Also, handlers should never hard-code their verb in responses, such as in the 
current state of give.  Since offer also triggers give, 'mapped' should be used 
here as well.  This should be a general guideline.

Original comment by bmcca...@gmail.com on 7 Sep 2010 at 8:18