Merge pull request #1716 from thelounge/xpaw/fix-topic-from
Not all topic callbacks include nick
This commit is contained in:
commit
1e4c39a87c
@ -15,7 +15,7 @@ module.exports = function(irc, network) {
|
||||
const msg = new Msg({
|
||||
time: data.time,
|
||||
type: Msg.Type.TOPIC,
|
||||
from: chan.getUser(data.nick),
|
||||
from: data.nick && chan.getUser(data.nick),
|
||||
text: data.topic,
|
||||
self: data.nick === irc.user.nick,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user