summaryrefslogtreecommitdiff
path: root/logbot.py
diff options
context:
space:
mode:
authorChris Oliver <excid3@gmail.com>2010-10-10 15:08:16 -0500
committerChris Oliver <excid3@gmail.com>2010-10-10 15:08:16 -0500
commit2f0e6c963a9c9fd1295da7647a024e784d90ac1e (patch)
tree882dff13032e39463c0155de079beeb7218c439e /logbot.py
parentfb5bb2ec18f79ca9157859a98232627276160d07 (diff)
downloadlogbot-2f0e6c963a9c9fd1295da7647a024e784d90ac1e.tar.xz
Fixed nick changes from being in their own log
Diffstat (limited to 'logbot.py')
-rw-r--r--logbot.py7
1 files changed, 5 insertions, 2 deletions
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]