h/plugins/misc.py

13 lines
307 B
Python
Raw Normal View History

from util import hook
@hook.event('KICK INVITE')
2009-03-15 06:51:39 +00:00
def rejoin(bot, input):
if input.command == 'KICK':
if input.paraml[1] == bot.bot.nick:
if input.paraml[0] == bot.bot.channel:
bot.join(input.paraml[0])
2009-03-15 06:51:39 +00:00
if input.command == 'INVITE':
bot.join(input.inp)