logout event set

This commit is contained in:
tncyclk 2017-10-31 10:31:05 +03:00
parent ca6ccd2eb6
commit db4774607c

View file

@ -47,7 +47,11 @@ class Commander(object):
if len(params) == 6:
data['ip'] = params[5]
elif len(params) == 3 and params[1] == 'logout':
print('{0} logging out'.format(str(params[2])))
data['event'] = params[1]
data['username'] = params[2]
elif len(params) == 4 and params[1] == 'logout':
print('{0} logging out'.format(str(params[2])))
data['event'] = params[1]