Lots of cleanup and bug fixes. Still some issues with reconnecting to the right location in multisession_mode 0.

This commit is contained in:
Griatch 2013-04-03 18:31:53 +02:00
parent e86c127903
commit 9eb1903f02
8 changed files with 73 additions and 83 deletions

View file

@ -18,6 +18,7 @@ from src.comms.models import Channel
from src.utils import logger
__all__ = ("Player",)
_MULTISESSION_MODE = settings.MULTISESSION_MODE
_CMDSET_OOC = settings.CMDSET_OOC
_CONNECT_CHANNEL = None
@ -322,9 +323,11 @@ class Player(TypeClass):
at_post_login hook.
"""
self._send_to_connect_channel("{G%s connected{n" % self.key)
# Character.at_post_login also looks around. Only use
# this as a backup when logging in without a character
self.execute_cmd("look")
if _MULTISESSION_MODE == 2 or not self.get_all_characters():
# Character.at_post_login also looks around. Only use
# this as a backup when logging in without a character
self.execute_cmd("look")
def at_disconnect(self, reason=None):
"""