diff --git a/src/commands/unloggedin.py b/src/commands/unloggedin.py index 08f9e3a2c5..40894c8a09 100644 --- a/src/commands/unloggedin.py +++ b/src/commands/unloggedin.py @@ -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: