Merge pull request #1716 from thelounge/xpaw/fix-topic-from

Not all topic callbacks include nick
This commit is contained in:
Pavel Djundik 2017-11-19 18:39:44 +02:00 committed by GitHub
commit 1e4c39a87c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
});