h/plugins/misc.py

13 lines
314 B
Python

from util import hook
@hook.event('KICK INVITE')
def rejoin(bot, input):
if input.command == 'KICK':
if input.paraml[1] == input.conn.nick:
if input.paraml[0] in input.conn.channels:
bot.join(input.paraml[0])
if input.command == 'INVITE':
bot.join(input.inp)