2009-07-08 17:04:30 +00:00
|
|
|
from util import hook
|
2009-03-16 04:30:46 +00:00
|
|
|
|
2009-04-18 00:57:18 +00:00
|
|
|
|
2009-03-16 04:30:46 +00:00
|
|
|
@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:
|
2009-11-19 01:42:37 +00:00
|
|
|
input.conn.join(input.paraml[0])
|
2009-03-15 06:51:39 +00:00
|
|
|
|
|
|
|
if input.command == 'INVITE':
|
2009-11-19 01:42:37 +00:00
|
|
|
input.conn.join(input.inp)
|