12 lines
341 B
Lua
12 lines
341 B
Lua
return function(self,data)
|
|
local cmd,data = data:match("!(.-)!(.*)")
|
|
--print(">",cmd,data)
|
|
if cmd == "PONG" then
|
|
self:send("!PONG!")
|
|
elseif cmd == "CHANNEL" then
|
|
--
|
|
elseif cmd == "RETURNS" then
|
|
local rets = bin.new(data):getBlock("t")
|
|
self.node.master.OnDataReturned:Fire(rets)
|
|
end
|
|
end |