h/plugins/misc.py

13 lines
328 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:
input.conn.join(input.paraml[0])
2009-03-15 06:51:39 +00:00
if input.command == 'INVITE':
input.conn.join(input.inp)