mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Removed trailing newline that was causing trouble in parsing configuration file
This commit is contained in:
parent
68dbb32d94
commit
fb756c807d
@ -127,18 +127,18 @@ if __name__ == '__main__':
|
||||
'when the bot is finished connecting to the server?'
|
||||
configfd.write(anything('What command?'))
|
||||
configfd.write('\n')
|
||||
configfd.write('\n')
|
||||
configfd.close()
|
||||
|
||||
###
|
||||
# Set owner user.
|
||||
###
|
||||
owner = anything('What should the owner\'s username be?')
|
||||
password = anything('What should the owner\'s password be?')
|
||||
user = ircdb.IrcUser()
|
||||
user.setPassword(password)
|
||||
user.addCapability('owner')
|
||||
ircdb.users.setUser(owner, user)
|
||||
if yn('Would you like to add an owner user?') == 'y':
|
||||
owner = anything('What should the owner\'s username be?')
|
||||
password = anything('What should the owner\'s password be?')
|
||||
user = ircdb.IrcUser()
|
||||
user.setPassword(password)
|
||||
user.addCapability('owner')
|
||||
ircdb.users.setUser(owner, user)
|
||||
|
||||
###
|
||||
# Finito!
|
||||
|
Loading…
Reference in New Issue
Block a user