This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Usage: | |
-- input chatlog files on stdin, outputs formatted logs on stdout | |
-- (name<tab>message\n), with all lines of multiline messages labelled with usernames | |
-- Pass a list of usernames to filter as arguments (optional) | |
-- iterator function, returns: name, message, room, time (in minutes) | |
function chatlines(file, ...) | |
local name, hour, minute, room | |
local names | |
if #{...}>0 then |