message fix

This commit is contained in:
blacktwin 2017-12-06 12:05:20 -05:00 committed by GitHub
parent dd064f583f
commit 7d2e8692c7
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.get(platform, DEFAULT_REASON)
MESSAGE = DEVICES[platform].get(platform, DEFAULT_REASON)
print('Killing {user}\'s stream on {plat}.'.format(user=user, plat=platform))
session.stop(reason=MESSAGE)