diff options
author | Santo Cariotti <sancn@live.com> | 2017-08-22 11:54:40 +0200 |
---|---|---|
committer | Santo Cariotti <sancn@live.com> | 2017-08-22 11:54:40 +0200 |
commit | 6a76576558adc8cf15d7b44b59f0c1dc00c5b729 (patch) | |
tree | ffa69784752fe7376480d7fef7c01df5f3dccd6d /lib/app.py | |
parent | 19701a38439cc45c52b3c95c05b9a74763d7f1a3 (diff) |
deleted redis conf
Diffstat (limited to 'lib/app.py')
-rw-r--r-- | lib/app.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -from classes import r, clear, YELLOW, BLACK, GREY +from classes import clear, YELLOW, BLACK, GREY from commands import Commands from listcommands import ListCommands import os.path @@ -24,12 +24,12 @@ class Stout(Commands): """ try: with open(config['path'], 'rb') as fin: - user = fin.readline() + user = fin.readline().split() - if user == '': + if user[0] == '': return '' else: - return user.decode('utf-8') + return user[0].decode('utf-8') except Exception: return '' |