From a10e54bcc883023a64e060f7990ee57f66aa7611 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Wed, 19 Dec 2012 00:09:28 -0600 Subject: [PATCH] DrBotIRC: properly debug log welcome events my git surgery failed me --- DrBotIRC.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DrBotIRC.py b/DrBotIRC.py index 2387de9..5303001 100644 --- a/DrBotIRC.py +++ b/DrBotIRC.py @@ -138,10 +138,10 @@ class DrBotServerConnection(irclib.ServerConnection): """ - log.debug("welcome: {0:s}".format(what)) - what = event.arguments()[0] + log.debug("welcome: {0:s}".format(what)) + match = re.search('(\S+!\S+@\S+)', what) if match: self.nickmask = match.group(1)