Merge pull request #2993 from chiizujin/quell_spaces

Fix extra/missing spaces in quell output (#2991)
This commit is contained in:
Griatch 2022-11-25 12:14:37 +01:00 committed by GitHub
commit f2239f07ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -987,7 +987,7 @@ class CmdQuell(COMMAND_DEFAULT_CLASS):
"""Perform the command"""
account = self.account
permstr = (
account.is_superuser and " (superuser)" or "(%s)" % ", ".join(account.permissions.all())
account.is_superuser and "(superuser)" or "(%s)" % ", ".join(account.permissions.all())
)
if self.cmdstring in ("unquell", "unquell"):
if not account.attributes.get("_quell"):
@ -1011,7 +1011,7 @@ class CmdQuell(COMMAND_DEFAULT_CLASS):
cpermstr += "\nUse unquell to return to normal permission usage."
self.msg(cpermstr)
else:
self.msg(f"Quelling Account permissions{permstr}. Use unquell to get them back.")
self.msg(f"Quelling Account permissions {permstr}. Use unquell to get them back.")
self._recache_locks(account)