Connection recovery is now in. You can only have one session active per account. This is just the safest and cleanest way to do things. Also made some misc. other changes that will probably go unnoticed.

This commit is contained in:
Greg Taylor 2007-05-25 15:02:16 +00:00
parent f57ef16912
commit e7f8b901ce
4 changed files with 26 additions and 11 deletions

View file

@ -139,6 +139,7 @@ class SessionProtocol(StatefulTelnetProtocol):
pobject = self.get_pobject()
pobject.set_flag("CONNECTED", True)
session_mgr.disconnect_duplicate_session(self)
self.msg("You are now logged in as %s." % (self.name,))
pobject.get_location().emit_to_contents("%s has connected." % (pobject.get_name(),), exclude=pobject)
cdat = {"session": self, "uinput":'look', "server": self.factory.server}