From a8fa2deed191453ead4b14c7396439d2f32429f7 Mon Sep 17 00:00:00 2001 From: jcao219 Date: Thu, 4 Aug 2011 19:23:49 -0500 Subject: [PATCH] now the bot only joins when it receives its cloak (bad idea?) --- wolfgame.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfgame.py b/wolfgame.py index 85df7d0..cd9d61d 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -38,7 +38,8 @@ hook = decorators.generate(HOOKS, raw_nick=True) def connect_callback(cli): cli.ns_identify(botconfig.PASS) - def prepare_stuff(): + @hook("event_hosthidden", id=294) + def prepare_stuff(*args): cli.join(botconfig.CHANNEL) cli.msg("ChanServ", "op "+botconfig.CHANNEL) @@ -102,7 +103,7 @@ def connect_callback(cli): var.KILL_IDLE_TIME = 0 #300 var.WARN_IDLE_TIME = 0 #180 - prepare_stuff() + def mass_mode(cli, md):