(self, *args)
line Event Handler

        Process a line of text and generate the appropriate
        event. This must not be overridden by subclasses,
        if it is, this must be explicitly called by the
        subclass. Other Components may however listen to
        this event and process custom IRC events.
line Event Handler
line Event Handler
def line(self, *args):
        """line Event Handler

        Process a line of text and generate the appropriate
        event. This must not be overridden by subclasses,
        if it is, this must be explicitly called by the
        subclass. Other Components may however listen to
        this event and process custom IRC events.
        """

        if len(args) == 1:
            # Client read
            sock, line = None, args[0]
        else:
            # Server read
            sock, line = args

        prefix, command, args = parsemsg(line, encoding=self.encoding)

        command = command.lower()

        if NUMERIC.match(command):
            args.insert(0, int(command))
            command = "numeric"

        if sock is not None:
            self.fire(response.create(command, sock, prefix, *args))
        else:
            self.fire(response.create(command, prefix, *args))
def line ( self , * args ) : if len ( args ) == 1 : # Client read sock , line = None , args [ 0 ] else : # Server read sock , line = args prefix , command , args = parsemsg ( line , encoding = self . encoding ) command = command . lower ( ) if NUMERIC . match ( command ) : args . insert ( 0 , int ( command ) ) command = "numeric" if sock is not None : self . fire ( response . create ( command , sock , prefix , * args ) ) else : self . fire ( response . create ( command , prefix , * args ) )