mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 06:27:17 +02:00
Changed the way server reports logged-in/unlogged-in sessions to the log file.
This commit is contained in:
parent
da51cb063f
commit
06566c3e8f
1 changed files with 4 additions and 5 deletions
|
|
@ -268,15 +268,14 @@ class ServerSession(Session):
|
|||
String representation of the user session class. We use
|
||||
this a lot in the server logs.
|
||||
"""
|
||||
if self.logged_in:
|
||||
symbol = '#'
|
||||
else:
|
||||
symbol = '?'
|
||||
symbol = ""
|
||||
if self.logged_in and hasattr(self, "player") and self.player:
|
||||
symbol = "(#%s)" % self.player.id
|
||||
try:
|
||||
address = ":".join([str(part) for part in self.address])
|
||||
except Exception:
|
||||
address = self.address
|
||||
return "<%s> %s@%s" % (symbol, self.uname, address)
|
||||
return "%s%s@%s" % (self.uname, symbol, address)
|
||||
|
||||
def __unicode__(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue