Not all topic callbacks include nick

This commit is contained in:
Pavel Djundik 2017-11-19 18:30:10 +02:00 committed by GitHub
parent da5a5c7175
commit 57289396da
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,
});