mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-23 10:38:05 +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)
|
local function remote_listener(_,from,port,data)
|
||||||
if port ~= cfg.port then return false end
|
if port ~= cfg.port then return false end
|
||||||
local service, level, msg = data:match("(.-)\t(%d)\t(.+)")
|
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)
|
msg, level, service = tostring(msg),tonumber(level),tostring(service)
|
||||||
wentry(nil,msg,level,service,from)
|
wentry(nil,msg,level,service,from)
|
||||||
end
|
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()
|
function start()
|
||||||
reload()
|
reload()
|
||||||
if #listeners > 0 then return end
|
if #listeners > 0 then return end
|
||||||
|
Loading…
Reference in New Issue
Block a user