import Config import QuoteThread import Uptime if __name__ == "__main__": #start the uptime counter Uptime.startUptime() Config.loadConfig( "rogie.cfg" ) config = Config.getConfig() protocol = config.getString("login", "protocol") #init the protocol we are going to use Protocol.initProtocol( protocol ) protocol = Protocol.getProtocol() #first get the cookie and id's nick = config.getString( "login", "username" ) passwd = config.getString( "login", "password" ) events = Events.getEvents() events.addListener( Display.getDisplay() ) events.addListener( SpamFilter.getInstance() ) #create the socket sock = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) sock.settimeout( 120.0 )