diff --git a/dr.botzo.py b/dr.botzo.py index 8624574..70d6fe3 100755 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -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)