From db4774607c67d86085e5f462abc7c6584080d138 Mon Sep 17 00:00:00 2001 From: tncyclk Date: Tue, 31 Oct 2017 10:31:05 +0300 Subject: [PATCH] logout event set --- opt/ahenk/base/command/command_manager.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opt/ahenk/base/command/command_manager.py b/opt/ahenk/base/command/command_manager.py index 0ef88ff..eef575f 100644 --- a/opt/ahenk/base/command/command_manager.py +++ b/opt/ahenk/base/command/command_manager.py @@ -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]