def dump_message(self, msg, exclusion_list=None, local_only=True,
                     cap=None, exclude_cap=None):
        if not exclusion_list:
            exclusion_list = list()
        if local_only:
            ctx = get_context()

        for m in self.members:
            if m.client in exclusion_list:
                continue
            if local_only and m.client.servername != ctx.conf.name:
                continue
            if cap and cap not in m.client.caps:
                continue
            if exclude_cap and exclude_cap in m.client.caps:
                continue

            m.client.dump_message(msg)
dataset/ETHPy150Open mammon-ircd/mammon/mammon/channel.py/Channel.dump_message/original