aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2016-04-19 13:26:31 +0100
committerGravatar jesopo2016-04-19 13:26:31 +0100
commitc7c5e800fe340b95bc0285189eee81e88a6d5f74 (patch)
treea6edbc7fa59b23d7e7ce32e9b8bc33759c27d1f9
parentdid what I said I would sooner than I thought I would. centralised persisting... (diff)
fixed a broken usage of the timer system. (functions are not json-able!)
-rw-r--r--IRCLineHandler.py5
1 files 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