CmdQuell whitespace adjust to pass tests
This commit is contained in:
parent
a96ad804c0
commit
7e395ea7ec
1 changed files with 5 additions and 5 deletions
|
|
@ -818,22 +818,22 @@ class CmdQuell(COMMAND_DEFAULT_CLASS):
|
||||||
def func(self):
|
def func(self):
|
||||||
"""Perform the command"""
|
"""Perform the command"""
|
||||||
player = self.player
|
player = self.player
|
||||||
permstr = player.is_superuser and " (superuser)" or " (%s)" % (", ".join(player.permissions.all()))
|
permstr = player.is_superuser and " (superuser)" or "(%s)" % (", ".join(player.permissions.all()))
|
||||||
if self.cmdstring == '@unquell':
|
if self.cmdstring == '@unquell':
|
||||||
if not player.attributes.get('_quell'):
|
if not player.attributes.get('_quell'):
|
||||||
self.msg("Already using normal Player permissions%s." % permstr)
|
self.msg("Already using normal Player permissions %s." % permstr)
|
||||||
else:
|
else:
|
||||||
player.attributes.remove('_quell')
|
player.attributes.remove('_quell')
|
||||||
self.msg("Player permissions%s restored." % permstr)
|
self.msg("Player permissions %s restored." % permstr)
|
||||||
else:
|
else:
|
||||||
if player.attributes.get('_quell'):
|
if player.attributes.get('_quell'):
|
||||||
self.msg("Already quelling Player%s permissions." % permstr)
|
self.msg("Already quelling Player %s permissions." % permstr)
|
||||||
return
|
return
|
||||||
player.attributes.add('_quell', True)
|
player.attributes.add('_quell', True)
|
||||||
puppet = self.session.puppet
|
puppet = self.session.puppet
|
||||||
if puppet:
|
if puppet:
|
||||||
cpermstr = "(%s)" % ", ".join(puppet.permissions.all())
|
cpermstr = "(%s)" % ", ".join(puppet.permissions.all())
|
||||||
cpermstr = "Quelling to current puppet's permissions%s." % cpermstr
|
cpermstr = "Quelling to current puppet's permissions %s." % cpermstr
|
||||||
cpermstr += "\n(Note: If this is higher than Player permissions %s," \
|
cpermstr += "\n(Note: If this is higher than Player permissions %s," \
|
||||||
" the lowest of the two will be used.)" % permstr
|
" the lowest of the two will be used.)" % permstr
|
||||||
cpermstr += "\nUse @unquell to return to normal permission usage."
|
cpermstr += "\nUse @unquell to return to normal permission usage."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue