Skip to content

Commit

Permalink
Merge pull request #1716 from thelounge/xpaw/fix-topic-from
Browse files Browse the repository at this point in the history
Not all topic callbacks include nick
  • Loading branch information
xPaw committed Nov 19, 2017
2 parents da5a5c7 + 5728939 commit 1e4c39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/irc-events/topic.js
Expand Up @@ -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,
});
Expand Down

0 comments on commit 1e4c39a

Please sign in to comment.