First version of changed sessid->session change that starts properly. Not fully tested yet.
This commit is contained in:
parent
d496606a3c
commit
efefe3e5ff
11 changed files with 28 additions and 25 deletions
|
|
@ -14,7 +14,7 @@ from evennia.comms.models import ChannelDB, Msg
|
|||
from evennia.players.models import PlayerDB
|
||||
from evennia.players import bots
|
||||
from evennia.comms.channelhandler import CHANNELHANDLER
|
||||
from evennia.utils import create, utils, prettytable, evtable
|
||||
from evennia.utils import create, utils, evtable
|
||||
from evennia.utils.utils import make_iter
|
||||
from evennia.commands.default.muxcommand import MuxCommand, MuxPlayerCommand
|
||||
|
||||
|
|
@ -740,7 +740,7 @@ class CmdPage(MuxPlayerCommand):
|
|||
rstrings.append("You are not allowed to page %s." % pobj)
|
||||
continue
|
||||
pobj.msg("%s %s" % (header, message))
|
||||
if hasattr(pobj, 'sessions') and not pobj.sessions:
|
||||
if hasattr(pobj, 'sessions') and not pobj.sessions.count():
|
||||
received.append("{C%s{n" % pobj.name)
|
||||
rstrings.append("%s is offline. They will see your message if they list their pages later." % received[-1])
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -481,7 +481,7 @@ class CmdQuit(MuxPlayerCommand):
|
|||
|
||||
if 'all' in self.switches:
|
||||
player.msg("{RQuitting{n all sessions. Hope to see you soon again.", session=self.session)
|
||||
for session in player.sessions.all()
|
||||
for session in player.sessions.all():
|
||||
player.disconnect_session_from_player(session)
|
||||
else:
|
||||
nsess = len(player.sessions.all())
|
||||
|
|
|
|||
|
|
@ -489,9 +489,6 @@ class CmdService(MuxCommand):
|
|||
return
|
||||
|
||||
# get all services
|
||||
sessions = caller.sessions
|
||||
if not sessions:
|
||||
return
|
||||
service_collection = SESSIONS.server.services
|
||||
|
||||
if not switches or switches[0] == "list":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue