Fixed regression in @shutdown command due to previous changes to session handling. Resolves #895.

This commit is contained in:
Griatch 2015-12-17 00:24:33 +01:00
parent 84aeb9ed3a
commit ff46bf9103

View file

@ -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"