mirror of
https://github.com/evennia/evennia.git
synced 2026-04-18 06:09:06 +02:00
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:
parent
f57ef16912
commit
e7f8b901ce
4 changed files with 26 additions and 11 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue