pretty trivial variable renames for bot connection variables

This commit is contained in:
Brian S. Stephan 2010-07-25 08:24:04 -05:00
parent 51659c6078
commit d1d54ca35c
1 changed files with 5 additions and 5 deletions

View File

@ -153,10 +153,10 @@ config.read([os.path.expanduser('~/.dr.botzo.cfg'), 'dr.botzo.cfg'])
# load necessary options
try:
# load connection info
server = config.get('IRC', 'server')
port = config.getint('IRC', 'port')
nick = config.get('IRC', 'nick')
ircname = config.get('IRC', 'name')
botserver = config.get('IRC', 'server')
botport = config.getint('IRC', 'port')
botnick = config.get('IRC', 'nick')
botircname = config.get('IRC', 'name')
except NoSectionError as e:
sys.exit("Aborted due to error with necessary configuration: " + str(e))
except NoOptionError as e:
@ -169,7 +169,7 @@ irclib.DEBUG = config.getboolean('IRC', 'debug')
# create IRC and server objects and connect
irc = irclib.IRC()
server = irc.server().connect(server, port, nick, ircname)
server = irc.server().connect(botserver, botport, botnick, botircname)
# install handlers
server.add_global_handler("welcome", on_connect)