fixed a broken usage of the timer system. (functions are not json-able!)

This commit is contained in:
jesopo 2016-04-19 13:26:31 +01:00
parent bc12c77891
commit c7c5e800fe
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3

View file

@ -288,6 +288,7 @@ def handle_433():
pass
@handler(description="we need a registered nickname for this channel")
def handle_477():
bot.add_timer(server.try_rejoin, 5, line_split[3],
server.attempted_join[line_split[3].lower()])
bot.add_timer("rejoin", 5, channel_name=line_split[3],
key=server.attempted_join[line_split[3].lower()],
server_id=server.id)
#:newirc.tripsit.me 477 BitBot ##nope :Cannot join channel (+r) - you need to be identified with services