and username, password options to bot, and properly connect with those options.

This commit is contained in:
Brian S. Stephan 2010-09-08 20:32:43 -05:00
parent fd7834756b
commit 54af309bbc
1 changed files with 3 additions and 1 deletions

View File

@ -81,6 +81,8 @@ try:
botserver = config.get('dr.botzo', 'server')
botport = config.getint('dr.botzo', 'port')
botnick = config.get('dr.botzo', 'nick')
botpass = config.get('dr.botzo', 'pass')
botuser = config.get('dr.botzo', 'user')
botircname = config.get('dr.botzo', 'name')
except NoSectionError as e:
sys.exit("Aborted due to error with necessary configuration: " + str(e))
@ -94,7 +96,7 @@ irclib.DEBUG = config.getboolean('dr.botzo', 'debug')
# create IRC and server objects and connect
irc = DrBotIRC()
server = irc.server().connect(botserver, botport, botnick, botircname)
server = irc.server().connect(botserver, botport, botnick, botpass, botuser, botircname)
# load features
try: