From 2f0e6c963a9c9fd1295da7647a024e784d90ac1e Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Sun, 10 Oct 2010 15:08:16 -0500 Subject: Fixed nick changes from being in their own log --- logbot.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'logbot.py') diff --git a/logbot.py b/logbot.py index 5a89590..be13ecc 100644 --- a/logbot.py +++ b/logbot.py @@ -50,7 +50,7 @@ DEBUG = False SERVER = "irc.freenode.net" PORT = 6667 SERVER_PASS = None -CHANNELS=["#keryx"] +CHANNELS=["#excid3"] NICK = "timber" NICK_PASS = None @@ -144,6 +144,9 @@ class Logbot(SingleServerIRCBot): return "#%s" % md5(user).hexdigest()[:6] def format_event(self, name, event, params): + print event.target() + print event.source() + print event.arguments() msg = self.format[name] for key, val in params.iteritems(): msg = msg.replace(key, val) @@ -166,7 +169,7 @@ class Logbot(SingleServerIRCBot): msg = self.format_event(name, event, params) # Quit goes across all channels - if not chans: + if not chans or not chans.startswith("#"): chans = self.chans else: chans = [chans] -- cgit v1.2.3