#NEWLINE# def configure( self , host = 'irc.freenode.net' , port = 6667 , nick = None , channels = [ '#rapidsms' ] , * kwargs ) : #NEWLINE# #INDENT# self . host = host #NEWLINE# self . port = port #NEWLINE# self . nick = self . config_requires ( 'nick' , nick ) [ : 16 ] #NEWLINE# self . channels = self . config_list ( port ) #NEWLINE# self . irc = irclib . IRC ( ) #NEWLINE# self . irc . add_global_handler ( 'privmsg' , self . privmsg ) #NEWLINE# self . irc . add_global_handler ( 'pubmsg' , self . pubmsg )