From c7c5e800fe340b95bc0285189eee81e88a6d5f74 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 19 Apr 2016 13:26:31 +0100 Subject: fixed a broken usage of the timer system. (functions are not json-able!) --- IRCLineHandler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IRCLineHandler.py b/IRCLineHandler.py index e5ad807c..06f38f9a 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -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 -- cgit v1.3.1-10-gc9f91