mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-12-25 17:58:07 +11:00
added the local listener. whoops.
This commit is contained in:
parent
0637da63b4
commit
c6c471cfcf
@ -71,11 +71,17 @@ end
|
||||
local function remote_listener(_,from,port,data)
|
||||
if port ~= cfg.port then return false end
|
||||
local service, level, msg = data:match("(.-)\t(%d)\t(.+)")
|
||||
if not service and not level and not msg then return false end
|
||||
if not service or not level or not msg then return false end
|
||||
msg, level, service = tostring(msg),tonumber(level),tostring(service)
|
||||
wentry(nil,msg,level,service,from)
|
||||
end
|
||||
|
||||
local function local_listener(_,msg,level,service)
|
||||
if not service or not level or not msg then return false end
|
||||
msg, level, service = tostring(msg),tonumber(level),tostring(service)
|
||||
wentry(nil,msg,level,service,hostname)
|
||||
end
|
||||
|
||||
function start()
|
||||
reload()
|
||||
if #listeners > 0 then return end
|
||||
|
Loading…
Reference in New Issue
Block a user