From 623f6bea5a07877cbb1b036f0a82820405bd6ffd Mon Sep 17 00:00:00 2001 From: jamesvclemence Date: Mon, 12 Jan 2009 16:26:07 +0000 Subject: [PATCH] Disabled the use of 'create' and 'connect' ingame --- src/commands/unloggedin.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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: