h/plugins/misc.py

13 lines
314 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':
2009-11-18 00:27:55 +00:00
if input.paraml[1] == input.conn.nick:
if input.paraml[0] in input.conn.channels:
bot.join(input.paraml[0])
2009-03-15 06:51:39 +00:00
if input.command == 'INVITE':
bot.join(input.inp)