Removed trailing newline that was causing trouble in parsing configuration file

This commit is contained in:
Jeremy Fincher 2003-03-31 06:56:56 +00:00
parent 68dbb32d94
commit fb756c807d

View File

@ -127,18 +127,18 @@ if __name__ == '__main__':
'when the bot is finished connecting to the server?' 'when the bot is finished connecting to the server?'
configfd.write(anything('What command?')) configfd.write(anything('What command?'))
configfd.write('\n') configfd.write('\n')
configfd.write('\n')
configfd.close() configfd.close()
### ###
# Set owner user. # Set owner user.
### ###
owner = anything('What should the owner\'s username be?') if yn('Would you like to add an owner user?') == 'y':
password = anything('What should the owner\'s password be?') owner = anything('What should the owner\'s username be?')
user = ircdb.IrcUser() password = anything('What should the owner\'s password be?')
user.setPassword(password) user = ircdb.IrcUser()
user.addCapability('owner') user.setPassword(password)
ircdb.users.setUser(owner, user) user.addCapability('owner')
ircdb.users.setUser(owner, user)
### ###
# Finito! # Finito!