import mudpy
-def chat(actor):
+def chat(actor, parameters):
"""Toggle chat mode."""
mode = actor.get("mode")
if not mode:
actor.send(message)
-def quit(actor):
+def quit(actor, parameters):
"""Leave the world and go back to the main menu."""
if actor.owner:
actor.owner.state = "main_utility"
actor.owner.deactivate_avatar()
-def reload(actor):
+def reload(actor, parameters):
"""Reload all code modules, configs and data."""
if actor.owner:
_lock: true
-command.chat.action: mudpy.command.chat(actor)
+command.chat.action: mudpy.command.chat(actor, parameters)
command.chat.description: Enter and leave chat mode.
command.chat.help: The chat command toggles chat mode. When in chat mode, all
input is passed as a parameter to the say command, unless prepended by an
Examples:$(eol)$(eol) preferences$(eol) preferences
prompt$(eol) preferences prompt $_(time)>
-command.quit.action: mudpy.command.quit(actor)
+command.quit.action: mudpy.command.quit(actor, parameters)
command.quit.description: Leave the World.
command.quit.help: This will deactivate your avatar and return you to the main
menu.
-command.reload.action: mudpy.command.reload(actor)
+command.reload.action: mudpy.command.reload(actor, parameters)
command.reload.administrative: true
command.reload.description: Reload modules and data.
command.reload.help: This will reload all python modules and read-only data