Changed the assert to a log.info.

This commit is contained in:
Jeremy Fincher 2004-02-09 16:19:28 +00:00
parent a6b0c7de66
commit de30db819a
1 changed files with 2 additions and 1 deletions

View File

@ -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)