mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 18:26:32 +01:00
Merge branch 'master' into feature/add-jupyter-notebook-support
Allows for jupyter notebook support via `evennia shell_plus --notebook` comand
This commit is contained in:
commit
c9992b8aa0
2 changed files with 2 additions and 2 deletions
|
|
@ -373,7 +373,7 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase):
|
|||
puppet (Object): The matching puppeted object, if any.
|
||||
|
||||
"""
|
||||
return session.puppet
|
||||
return session.puppet if session else None
|
||||
|
||||
def get_all_puppets(self):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -999,7 +999,7 @@ class CmdQuell(COMMAND_DEFAULT_CLASS):
|
|||
self.msg("Already quelling Account %s permissions." % permstr)
|
||||
return
|
||||
account.attributes.add("_quell", True)
|
||||
puppet = self.session.puppet
|
||||
puppet = self.session.puppet if self.session else None
|
||||
if puppet:
|
||||
cpermstr = "(%s)" % ", ".join(puppet.permissions.all())
|
||||
cpermstr = "Quelling to current puppet's permissions %s." % cpermstr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue