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)