mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 00:36:30 +01:00
Fixed regression in @shutdown command due to previous changes to session handling. Resolves #895.
This commit is contained in:
parent
84aeb9ed3a
commit
ff46bf9103
1 changed files with 2 additions and 4 deletions
|
|
@ -108,10 +108,8 @@ class CmdShutdown(MuxCommand):
|
|||
|
||||
def func(self):
|
||||
"Define function"
|
||||
try:
|
||||
# Only allow shutdown if caller has session
|
||||
self.caller.sessions[0]
|
||||
except Exception:
|
||||
# Only allow shutdown if caller has session
|
||||
if not self.caller.sessions.get():
|
||||
return
|
||||
self.msg('Shutting down server ...')
|
||||
announcement = "\nServer is being SHUT DOWN!\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue