Fixed a traceback if logging out from the unloggedin screen.

This commit is contained in:
Griatch 2012-12-11 23:30:30 +01:00
parent f2e971b392
commit a1a2c99d1e
2 changed files with 6 additions and 3 deletions

View file

@ -8,6 +8,9 @@ too game-specific to be a part of the main Evennia game server. These
modules are not used unless you explicitly import them. See each file modules are not used unless you explicitly import them. See each file
for more detailed instructions on how to install. for more detailed instructions on how to install.
Modules in this folder is distributed under the same licence as
Evennia unless noted differently in the individual module.
If you want to edit, tweak or expand on this code you should copy the If you want to edit, tweak or expand on this code you should copy the
things you want from here into game/gamesrc and change them there. things you want from here into game/gamesrc and change them there.
@ -20,7 +23,7 @@ things you want from here into game/gamesrc and change them there.
to the user for accepting an action. Includes a simple new to the user for accepting an action. Includes a simple new
command 'menu' for testing and debugging. command 'menu' for testing and debugging.
* Evennia Lineeditor (Griatch 2011) - A powerful line-by-line editor * Evennia Line editor (Griatch 2011) - A powerful line-by-line editor
for editing text in-game. Mimics the command names of the famous for editing text in-game. Mimics the command names of the famous
VI text editor. Supports undo/redo, search/replace, VI text editor. Supports undo/redo, search/replace,
regex-searches, buffer formatting, indenting etc. It comes with regex-searches, buffer formatting, indenting etc. It comes with

View file

@ -139,9 +139,9 @@ class ServerSession(Session):
uaccount.last_login = datetime.now() uaccount.last_login = datetime.now()
uaccount.save() uaccount.save()
self.logged_in = False self.logged_in = False
self.sessionhandler.disconnect(self)
if not self.sessionhandler.sessions_from_player(player): if not self.sessionhandler.sessions_from_player(player):
player.is_connected = False player.is_connected = False
self.sessionhandler.disconnect(self)
def get_player(self): def get_player(self):
""" """