Don't use integer timestamps as object keys. What if there's more than one action in any given second?
I'd much prefer an array with objects as element, each object storing its own timestamp.
I'd much prefer an array with objects as element, each object storing its own timestamp.
In addition, that's just based on my perception; IRC is NOT an ordered protocol, so if multiple people ran this same logger, they'd end up with different stream and different duplicate keys (same thing as events lost I might add).
My log, also, conveniently contains joins, parts, notices, ctcps, and all that other jazz because I used a mature logging library.