~emerson/clarityirc

70fa63858ae4154fd761500e3237e6687019700b — emerson 1 year, 4 months ago b83d67a
make sure all messages have a time tag
1 files changed, 4 insertions(+), 0 deletions(-)

M src/irc/IRCMessage.ts
M src/irc/IRCMessage.ts => src/irc/IRCMessage.ts +4 -0
@@ 122,5 122,9 @@ export function parseIRCMessage(rawLine: string) {
        params.push(lastParam);
    }

    if (!parsedTags.has('time')) {
        parsedTags.set('time', new Date().toISOString())
    }

    return new IRCMessage(parsedTags, prefix, command, params);
}
\ No newline at end of file