Remote message data can be and is bit different but should be restructured before handing it out to event handlers and/or chat API.
Probable either just before calling handle_data or after first sanity check and before first event handler callbacks here:
|
local function handle_data(data) |
|
if not data or not data.username or not data.text or not data.gateway or not data.protocol then |
|
return |
|
end |
|
|
|
if not beerchat.execute_callbacks('on_http_receive', data) then |
|
return |
|
end |
Remote message data can be and is bit different but should be restructured before handing it out to event handlers and/or chat API.
Probable either just before calling
handle_dataor after first sanity check and before first event handler callbacks here:beerchat/web/rx.lua
Lines 3 to 10 in 0f106b1