From 475a6259b623a436af853142cdda271c31816b44 Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Sun, 10 Jul 2011 02:10:36 -0700 Subject: [PATCH] Display join and parts in logging --- irc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irc.py b/irc.py index d3e3f1a..afb92a4 100644 --- a/irc.py +++ b/irc.py @@ -405,11 +405,13 @@ class PesterHandler(DefaultCommandHandler): # ok i shouldnt be overloading that but am lazy def part(self, nick, channel, reason="nanchos"): handle = nick[0:nick.find("!")] + logging.info("---> recv \"PART %s: %s\"" % (handle, channel)) self.parent.userPresentUpdate.emit(handle, channel, "left") if channel == "#pesterchum": self.parent.moodUpdated.emit(handle, Mood("offline")) def join(self, nick, channel): handle = nick[0:nick.find("!")] + logging.info("---> recv \"JOIN %s: %s\"" % (handle, channel)) self.parent.userPresentUpdate.emit(handle, channel, "join") if channel == "#pesterchum": self.parent.moodUpdated.emit(handle, Mood("chummy"))