diff options
author | disabler <dissy@ya.ru> | 2013-11-14 10:52:42 +0400 |
---|---|---|
committer | disabler <dissy@ya.ru> | 2013-11-14 10:52:42 +0400 |
commit | a4ed5995c055e3ec5f3c533e2004ee17b510acb5 (patch) | |
tree | 6d15ffff6a255a67ee260aa23c8540b7981d8b33 | |
parent | 6088c83a34d979ca14bcb360d6798eb5c2a5876f (diff) |
fix: remove upper case in bots owner jid at initial configure
-rw-r--r-- | kernel.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1782,7 +1782,7 @@ else: smiles_dirs, smiles_dirs_case = [], [] logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG,) # включение логгирования capsNode = 'http://isida-bot.com' -god = SuperAdmin +god = SuperAdmin.lower() pprint('-'*50,'blue') if os.path.basename(sys.argv[0]) != 'isida.py': errorHandler('Ugly launch detect! Read wiki!') @@ -1793,7 +1793,7 @@ elif base_type == 'sqlite3': pass else: errorHandler('Can\'t connect to `%s` base type!' % base_type) own = cur_execute_fetchall('select * from bot_owner;') -if not own: cur_execute('insert into bot_owner values (%s)',(SuperAdmin,)) +if not own: cur_execute('insert into bot_owner values (%s)',(SuperAdmin.lower(),)) pprint('*** Loading localization','white') locales,CURRENT_LOCALE = update_locale() |