def main(self, spin, data):
        """ 
        The function which uses irc rfc regex to extract
        the basic arguments from the msg.
        """
        data  = data.decode(self.encoding)
        field = re.match(RFC_REG, data)
        
        if not field:
            return
    
        prefix  = self.extract_prefix(field.group('prefix'))
        command = field.group('command').upper()
        args    = self.extract_args(field.group('arguments'))
        spawn(spin, command, *(prefix + args))
def main ( self , spin , data ) : data = data . decode ( self . encoding ) field = re . match ( RFC_REG , data ) if not field : return prefix = self . extract_prefix ( field . group ( 'prefix' ) ) command = field . group ( 'command' ) . upper ( ) args = self . extract_args ( field . group ( 'arguments' ) ) spawn ( spin , command , * ( prefix + args ) )
The function which uses irc rfc regex to extract
        the basic arguments from the msg.