Continue adding unit tests to cmdhandler.get_and_merge_cmdsets function. Not finished yet, unclear how to propagate the options correctly.

This commit is contained in:
Griatch 2016-10-08 22:54:36 +02:00
parent 40e1c67f88
commit bac6c7f234
4 changed files with 131 additions and 5 deletions

View file

@ -290,7 +290,7 @@ def get_and_merge_cmdsets(caller, session, player, obj, callertype):
# we are calling the command from the player level
report_to = player
player_cmdset = yield _get_cmdsets(player)
channel_cmdset = yield _get_channel_cmdset(player, player_cmdset)
channel_cmdset = yield _get_channel_cmdset(player)
cmdsets = player_cmdset + channel_cmdset
if obj:
obj_cmdset = yield _get_cmdsets(obj)