# # You should have received a copy of the GNU General Public License # along with this program. If not, see http://www.gnu.org/licenses/gpl-3.0.html . from irc import IrcClient from configfile import ConfigFile import man, xkcd, translator import datetime, getpass, os, random, re, select, signal, sys, time if len(sys.argv) != 2: print "Usage: " + sys.argv[0] + " path/to/config/file" sys.exit(1) config = ConfigFile(sys.argv[1]) server_and_port = config.get_server() if not server_and_port: print "Config file has no server entry" sys.exit(1) server, port = server_and_port channels = config.get_channels() if not channels: print "Config file has no channel entry" sys.exit(1) nick = config.get_nick() if not nick: print "Config file has no nick entry" sys.exit(1) realname = config.get_realname() if not realname: print "Config file has no realname entry"