Contrib: Added a new, alternative login system, using menus. Also edited the ways unlogged commands are started by the engine, by using a standardized system command name (it does not need to be "look" anymore).

This commit is contained in:
Griatch 2011-11-06 18:53:10 +01:00
parent 2b2d27ed39
commit 55f6f5b713
6 changed files with 81 additions and 15 deletions

View file

@ -19,6 +19,8 @@ from django.contrib.auth.models import User
from src.server.models import ServerConfig
from src.utils import utils
from src.commands.cmdhandler import CMD_LOGINSTART
# i18n
from django.utils.translation import ugettext as _
@ -94,7 +96,7 @@ class ServerSessionHandler(SessionHandler):
Creates a new, unlogged-in game session.
"""
self.sessions[sessid] = session
session.execute_cmd('look')
session.execute_cmd(CMD_LOGINSTART)
def portal_disconnect(self, sessid):
"""