Skip to content

Instantly share code, notes, and snippets.

@jsimmons
jsimmons / gist:455360
Created June 28, 2010 02:16
lua irc parsing
function parse(line)
local prefix
if line:sub(1,1) == ":" then
local space = line:find(" ")
prefix = line:sub(2, space-1)
line = line:sub(space)
end
local colonsplit = line:find(":")
local last