Disabled the use of 'create' and 'connect' ingame

This commit is contained in:
jamesvclemence 2009-01-12 16:26:07 +00:00
parent d80d93b250
commit 623f6bea5a

View file

@ -15,6 +15,11 @@ def cmd_connect(command):
session = command.session
# Check whether command is being issued in-game
if str(session.get_pobject()) != 'None':
session.msg("Connect command unavailable in-game")
return
# Argument check.
# Fail gracefully if no argument is provided
if not command.command_argument:
@ -51,6 +56,11 @@ def cmd_create(command):
"""
session = command.session
#If this command is issued in game,
if str(session.get_pobject()) != 'None':
session.msg("Create command unavailable in-game")
return
# Argument check.
# Fail gracefully if no argument is provided
if not command.command_argument: