# -*- coding: utf-8 -*-
from configs.module import Module


def init():
    m = Module('kicked')
    m.set_help('Rejoin a channel when kicked.')
    m.add_base_hook('recv', recv)
    return m


def recv(fp):
    if fp.sp.iscode('kick') and fp.sp.object == fp.server.nick:
        fp.server.join_channel(fp.sp.target)

0b84b5b5e35be38b1bea44c93efa300a5be0a67e
<mask token>

<mask token>


def recv(fp):
    if fp.sp.iscode('kick') and fp.sp.object == fp.server.nick:
        fp.server.join_channel(fp.sp.target)

<mask token>


def init():
    m = Module('kicked')
    m.set_help('Rejoin a channel when kicked.')
    m.add_base_hook('recv', recv)
    return m


def recv(fp):
    if fp.sp.iscode('kick') and fp.sp.object == fp.server.nick:
        fp.server.join_channel(fp.sp.target)

from configs.module import Module


def init():
    m = Module('kicked')
    m.set_help('Rejoin a channel when kicked.')
    m.add_base_hook('recv', recv)
    return m


def recv(fp):
    if fp.sp.iscode('kick') and fp.sp.object == fp.server.nick:
        fp.server.join_channel(fp.sp.target)

# -*- coding: utf-8 -*-
from configs.module import Module


def init():
    m = Module('kicked')
    m.set_help('Rejoin a channel when kicked.')
    m.add_base_hook('recv', recv)
    return m


def recv(fp):
    if fp.sp.iscode('kick') and fp.sp.object == fp.server.nick:
        fp.server.join_channel(fp.sp.target)
