Set the (correct) time on link expands

This commit is contained in:
stepie22 2016-11-25 19:57:47 +02:00
parent 06ecf625c6
commit aa8e0ae2c2

View file

@ -32,6 +32,7 @@ module.exports = function(irc, network) {
var msg = new Msg({
self: data.nick === irc.user.nick,
type: Msg.Type.TOGGLE,
time: data.time, // msg handles it if it isn't defined
});
chan.pushMessage(client, msg);
@ -49,7 +50,8 @@ function parse(msg, url, res, client) {
head: "",
body: "",
thumb: "",
link: url
link: url,
time: msg.time,
};
switch (res.type) {