irclib: Fill the nick and prefix of simulated echo messages.

This commit is contained in:
Valentin Lorentz 2020-10-17 14:22:48 +02:00
parent 5195ff8e12
commit 1fe414764c

View File

@ -1305,6 +1305,8 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
# echo-message is not implemented by server; let's emulate it # echo-message is not implemented by server; let's emulate it
# here, just before sending it to the driver. # here, just before sending it to the driver.
assert not msg.tagged('receivedAt') assert not msg.tagged('receivedAt')
msg.nick = self.nick
msg.prefix = self.prefix
self.feedMsg(msg, tag=False) self.feedMsg(msg, tag=False)
else: else:
# I don't think we should do this. Why should it matter? If it's # I don't think we should do this. Why should it matter? If it's