2214:a4c8b5763d0a | 2215:4678aa4567c8 |
---|---|
100 return t_concat(p); | 100 return t_concat(p); |
101 end | 101 end |
102 local function parse(data) | 102 local function parse(data) |
103 local message = {} | 103 local message = {} |
104 -- COMPAT: %z in the pattern to work around jwchat bug (sends "charset=utf-8\0") | 104 -- COMPAT: %z in the pattern to work around jwchat bug (sends "charset=utf-8\0") |
105 for k, v in gmatch(data, [[([%w%-]+)="?([^",%z]*)"?,?]]) do -- FIXME The hacky regex makes me shudder | 105 for k, v in s_gmatch(data, [[([%w%-]+)="?([^",%z]*)"?,?]]) do -- FIXME The hacky regex makes me shudder |
106 message[k] = v; | 106 message[k] = v; |
107 end | 107 end |
108 return message; | 108 return message; |
109 end | 109 end |
110 | 110 |