cleanup; use a more reasonable config{} definition method

This commit is contained in:
urlbot
2014-12-01 11:59:29 +01:00
parent 397fc4730c
commit 94aaa824f1
2 changed files with 7 additions and 15 deletions

View File

@@ -4,11 +4,13 @@ if '__main__' == __name__:
print '''don't try running this'''
exit(-1)
config = {}
config['jid'] = ''
config['password'] = ''
config['room'] = ''
config['nick'] = ''
config = {
'jid': '',
'password': '',
'room': '',
'nick': '',
'nick': 'urlbot'
}
def conf(val):
if val in config.keys():