From de30db819a9aa817a138713e61ec78345a8bf6f7 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 9 Feb 2004 16:19:28 +0000 Subject: [PATCH] Changed the assert to a log.info. --- src/irclib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/irclib.py b/src/irclib.py index 510af3dce..2d779a8d9 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -547,7 +547,8 @@ class Irc(IrcCommandDispatcher): def do001(self, msg): """Logs (and stores) the name of the network.""" welcome = msg.args[1] - assert welcome.startswith('Welcome to the ') + if not welcome.startswith('Welcome to the '): + log.info('Unexpected 001 welcome, guessing at network name.') words = welcome.split() self.network = words[3].lower() log.info('Setting network to %s.', self.network)