mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-08-28 13:54:15 -05:00
Send status to friends when going offline
This commit is contained in:
@@ -108,6 +108,11 @@ class PlayerSession(LineReceiver):
|
||||
def connectionLost(self, reason):
|
||||
self.log(logging.INFO, "Client disconnected")
|
||||
|
||||
self.status = "0"
|
||||
self.statstring = "Offline"
|
||||
self.locstring = ""
|
||||
self.send_status_to_friends()
|
||||
|
||||
if self.session in self.sessions:
|
||||
del self.sessions[self.session]
|
||||
self.log(logging.INFO, "Deleted session %d" % self.sessions)
|
||||
|
||||
Reference in New Issue
Block a user