mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 10:16:32 +01:00
Changed so sessid.get() always returns a list for every MULTISESSION_MODE.
This commit is contained in:
parent
ddaadb9825
commit
d4a78a11a6
1 changed files with 2 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ class SessidHandler(object):
|
|||
self._cache = list(set(int(val) for val in (_GA(self.obj, "db_sessid") or "").split(",") if val))
|
||||
|
||||
def get(self):
|
||||
"Returns a single integer or a list"
|
||||
return self._cache if _SESSID_MAX > 1 else self._cache[0] if self._cache else None
|
||||
"Returns a list of one or more session ids"
|
||||
return self._cache
|
||||
|
||||
def add(self, sessid):
|
||||
"Add sessid to handler"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue