#NEWLINE# def line( self , * args ) : #NEWLINE# #INDENT# 'line Event Handler\n\n        Process a line of text and generate the appropriate\n        event. This must not be overridden by subclasses,\n        if it is, this must be explicitly called by the\n        subclass. Other Components may however listen to\n        this event and process custom IRC events.\n        ' #NEWLINE# if ( len ( args ) == 1 ) : #NEWLINE# #INDENT# ( sock , line ) = ( None , args [ 0 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( sock , line ) = args #NEWLINE# #UNINDENT# ( prefix , command , args ) = parsemsg ( line , encoding = self . encoding ) #NEWLINE# command = command . lower ( ) #NEWLINE# if NUMERIC . match ( command ) : #NEWLINE# #INDENT# args . insert ( 0 , int ( command ) ) #NEWLINE# command = 'numeric' #NEWLINE# #UNINDENT# if ( sock is not None ) : #NEWLINE# #INDENT# self . fire ( response . create ( command , sock , prefix , * args ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fire ( response . create ( command , prefix , * args ) )