mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Corrected the session count when dropping connections.
This commit is contained in:
parent
60931c26a7
commit
0cd4e2188a
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ class ServerSessionHandler(SessionHandler):
|
|||
return
|
||||
player = session.player
|
||||
if player:
|
||||
nsess = len(self.sessions_from_player(player))
|
||||
nsess = len(self.sessions_from_player(player)) - 1
|
||||
remaintext = nsess and "%i session%s remaining" % (nsess, nsess > 1 and "s" or "") or "no more sessions"
|
||||
session.log(_('Connection dropped: %s %s (%s)' % (session.player, session.address, remaintext)))
|
||||
session.at_disconnect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue