

@eventmgr_core.handler('channel part', priority=1)
def m_part_channel(info):
    ch = info['channel']
    cli = info['client']
    message = info['message']
    ctx = get_context()
    ch.dump_message(RFC1459Message.from_data('PART', source=cli, params=[ch.name, message]))
    ch.part(cli)

dataset/ETHPy150Open mammon-ircd/mammon/mammon/channel.py m_part_channel/original