Update kill_device.py

This commit is contained in:
blacktwin 2017-12-06 12:05:43 -05:00 committed by GitHub
parent 7d2e8692c7
commit 88d1ffc06d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ def kill_session():
platform = session.players[0].platform
if DEVICES[platform]['kill'] is True:
MESSAGE = DEVICES[platform].get(platform, DEFAULT_REASON)
MESSAGE = DEVICES[platform].get('message', DEFAULT_REASON)
print('Killing {user}\'s stream on {plat}.'.format(user=user, plat=platform))
session.stop(reason=MESSAGE)