From 1c0f5206fab5a9af6a0120d754a8fa8235bde29e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20=C5=9Eahin?= Date: Wed, 21 Sep 2016 11:40:40 +0300 Subject: [PATCH] redundant parameters removed --- opt/ahenk/base/command/command_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opt/ahenk/base/command/command_manager.py b/opt/ahenk/base/command/command_manager.py index 03ad016..09dfaa3 100644 --- a/opt/ahenk/base/command/command_manager.py +++ b/opt/ahenk/base/command/command_manager.py @@ -25,7 +25,7 @@ class Commander(object): def set_event(self, *args): if args is None or len(args) < 1: - print('ERR') + print('Lack of arguments') params = args[0] data = dict() @@ -39,14 +39,14 @@ class Commander(object): return False elif len(params) == 5 and params[1] == 'login': - print('{1} {0}ing'.format(str(params[1]), str(params[2]))) + print('{0} logging in'.format(str(params[2]))) data['event'] = params[1] data['username'] = params[2] data['desktop'] = params[3] data['display'] = params[4] elif len(params) == 3 and params[1] == 'logout': - print('{1} {0}ing'.format(str(params[1]), str(params[2]))) + print('{0} logging out'.format(str(params[2]))) data['event'] = params[1] data['username'] = params[2]