#NEWLINE# def init( self , host , port = 6667 , opts = None ) : #NEWLINE# #INDENT# self . host = host #NEWLINE# self . port = port #NEWLINE# self . opts = opts #NEWLINE# self . hostname = gethostname ( ) #NEWLINE# self . nick = opts . nick #NEWLINE# self . ircchannel = opts . channel #NEWLINE# TCPClient ( channel = self . channel ) . register ( opts ) #NEWLINE# IRC ( channel = self . channel ) . register ( self ) #NEWLINE# self . create_interface ( )