mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Changed the assert to a log.info.
This commit is contained in:
parent
a6b0c7de66
commit
de30db819a
@ -547,7 +547,8 @@ class Irc(IrcCommandDispatcher):
|
|||||||
def do001(self, msg):
|
def do001(self, msg):
|
||||||
"""Logs (and stores) the name of the network."""
|
"""Logs (and stores) the name of the network."""
|
||||||
welcome = msg.args[1]
|
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()
|
words = welcome.split()
|
||||||
self.network = words[3].lower()
|
self.network = words[3].lower()
|
||||||
log.info('Setting network to %s.', self.network)
|
log.info('Setting network to %s.', self.network)
|
||||||
|
Loading…
Reference in New Issue
Block a user