def dispatch_patterns(self):
        return (
            (self.nick_re, self.new_nick),
            (self.nick_change_re, self.handle_nick_change),
            (self.ping_re, self.handle_ping),
            (self.part_re, self.handle_part),
            (self.join_re, self.handle_join),
            (self.quit_re, self.handle_quit),
            (self.chanmsg_re, self.handle_channel_message),
            (self.privmsg_re, self.handle_private_message),
            (self.registered_re, self.handle_registered),
        )
Low-level dispatching of socket data based on regex matching, in general
dataset/ETHPy150Open coleifer/irc/irc.py/IRCConnection.dispatch_patterns