- // Cache the string so it's not recreated every time a message is sent
- lasttimestring = IRCv3::ServerTime::FormatTime(currtime);
+ lasttimens = currtimens;
+
+ // Cache the string so it's not recreated every time a message is sent.
+ lasttimestring = IRCv3::ServerTime::FormatTime(currtime, (currtimens ? currtimens / 1000000 : 0));