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]