2010-07-24 09:54:38 -05:00
|
|
|
#!/usr/bin/env python3.1
|
|
|
|
|
|
|
|
import configparser
|
|
|
|
import os
|
|
|
|
|
|
|
|
config = configparser.ConfigParser()
|
|
|
|
config.read([os.path.expanduser('~/.dr.botzo.cfg'), 'dr.botzo.cfg'])
|
|
|
|
|
|
|
|
# load connection info
|
|
|
|
server = config.get('IRC', 'server')
|
|
|
|
port = config.getint('IRC', 'port')
|
|
|
|
channel = config.get('IRC', 'channel')
|
|
|
|
nick = config.get('IRC', 'nick')
|
2010-07-24 10:03:27 -05:00
|
|
|
ircname = config.get('IRC', 'name')
|
2010-07-24 09:54:38 -05:00
|
|
|
|
|
|
|
# vi:tabstop=4:expandtab:autoindent
|