mirror of https://github.com/Mikaela/Limnoria.git
Fixed possible error when the returned message includes formatting characters.
This commit is contained in:
parent
e53e237818
commit
476a620fe4
|
@ -713,7 +713,7 @@ class Irc(IrcCommandDispatcher):
|
||||||
# On second thought, we need this for testing.
|
# On second thought, we need this for testing.
|
||||||
if world.testing:
|
if world.testing:
|
||||||
self.state.addMsg(self, msg)
|
self.state.addMsg(self, msg)
|
||||||
log.debug('Outgoing message: ' + str(msg).rstrip('\r\n'))
|
log.debug('Outgoing message: %s', str(msg).rstrip('\r\n'))
|
||||||
if msg.command == 'JOIN':
|
if msg.command == 'JOIN':
|
||||||
channels = msg.args[0].split(',')
|
channels = msg.args[0].split(',')
|
||||||
for channel in channels:
|
for channel in channels:
|
||||||
|
@ -736,7 +736,7 @@ class Irc(IrcCommandDispatcher):
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
else:
|
else:
|
||||||
channel = None
|
channel = None
|
||||||
log.debug('Incoming message: ' + str(msg).rstrip('\r\n'))
|
log.debug('Incoming message: %s', str(msg).rstrip('\r\n'))
|
||||||
|
|
||||||
# Yeah, so this is odd. Some networks (oftc) seem to give us certain
|
# Yeah, so this is odd. Some networks (oftc) seem to give us certain
|
||||||
# messages with our nick instead of our prefix. We'll fix that here.
|
# messages with our nick instead of our prefix. We'll fix that here.
|
||||||
|
|
Loading…
Reference in New Issue