Changed the relative priorities of cmdsets to the following: -100(Empty), -20(Session), -10(Player), 0(Character), 101(Exit), 120(Channel)

This commit is contained in:
Griatch 2014-02-16 01:38:27 +01:00
parent dbe49bb778
commit 638483fa66
6 changed files with 6 additions and 6 deletions

View file

@ -81,7 +81,7 @@ class _ErrorCmdSet(CmdSet):
class _EmptyCmdSet(CmdSet):
"This cmdset represents an empty cmdset"
key = "_EMPTY_CMDSET"
priority = -100
priority = -101
mergetype = "Union"
def import_cmdset(python_path, cmdsetobj, emit_to_obj=None, no_logging=False):

View file

@ -814,7 +814,7 @@ class BatchSafeCmdSet(CmdSet):
always be available to get out of everything.
"""
key = "Batch_default"
priority = 104 # override other cmdsets.
priority = 150 # override other cmdsets.
def at_cmdset_creation(self):
"Init the cmdset"

View file

@ -20,7 +20,7 @@ class PlayerCmdSet(CmdSet):
"""
key = "DefaultPlayer"
priority = -5
priority = -10
def at_cmdset_creation(self):
"Populates the cmdset"

View file

@ -9,7 +9,7 @@ class SessionCmdSet(CmdSet):
Sets up the unlogged cmdset.
"""
key = "DefaultSession"
priority = -7
priority = -20
def at_cmdset_creation(self):
"Populate the cmdset"

View file

@ -149,7 +149,7 @@ class ChannelHandler(object):
# create a new cmdset holding all channels
chan_cmdset = cmdset.CmdSet()
chan_cmdset.key = '_channelset'
chan_cmdset.priority = 10
chan_cmdset.priority = 120
chan_cmdset.duplicates = True
for cmd in [cmd for cmd in self.cached_channel_cmds
if cmd.access(source_object, 'send')]:

View file

@ -1013,7 +1013,7 @@ class Exit(Object):
# create a cmdset
exit_cmdset = cmdset.CmdSet(None)
exit_cmdset.key = '_exitset'
exit_cmdset.priority = 9
exit_cmdset.priority = 101
exit_cmdset.duplicates = True
# add command to cmdset
exit_cmdset.add(cmd)