Emit when a player connects/disconnects to those in the same room.
This commit is contained in:
parent
5c029b8daa
commit
4fff8fea3a
1 changed files with 3 additions and 1 deletions
|
|
@ -58,7 +58,9 @@ class PlayerSession(async_chat):
|
||||||
"""
|
"""
|
||||||
Break the connection and do some accounting.
|
Break the connection and do some accounting.
|
||||||
"""
|
"""
|
||||||
self.get_pobject().set_flag("CONNECTED", False)
|
pobject = self.get_pobject()
|
||||||
|
pobject.set_flag("CONNECTED", False)
|
||||||
|
pobject.get_location().emit_to_contents("%s has disconnected." % (pobject.get_name(),), exclude=pobject)
|
||||||
async_chat.handle_close(self)
|
async_chat.handle_close(self)
|
||||||
self.logged_in = False
|
self.logged_in = False
|
||||||
session_mgr.remove_session(self)
|
session_mgr.remove_session(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue