Update kill_device.py
This commit is contained in:
parent
7d2e8692c7
commit
88d1ffc06d
@ -45,7 +45,7 @@ def kill_session():
|
|||||||
|
|
||||||
platform = session.players[0].platform
|
platform = session.players[0].platform
|
||||||
if DEVICES[platform]['kill'] is True:
|
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))
|
print('Killing {user}\'s stream on {plat}.'.format(user=user, plat=platform))
|
||||||
session.stop(reason=MESSAGE)
|
session.stop(reason=MESSAGE)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user