mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-23 10:38:05 +11:00
added a beeplevel option, any events equal to or above that level will make the server beep.
This commit is contained in:
parent
80a059342e
commit
b212d13010
@ -12,6 +12,7 @@ cfg.receive = false
|
||||
cfg.write = true
|
||||
cfg.destination = "/dev/null"
|
||||
cfg.minlevel = 6
|
||||
cfg.beeplevel = 3
|
||||
cfg.filter = {} -- todo
|
||||
|
||||
local listeners = {}
|
||||
@ -58,6 +59,9 @@ local function wentry(_,msg,level,service,host)
|
||||
if drelay then
|
||||
net.usend(cfg.relayhost, cfg.port, entry)
|
||||
end
|
||||
if level <= cfg.beeplevel then
|
||||
computer.beep()
|
||||
end
|
||||
end
|
||||
|
||||
local function remote_listener(_,from,port,data)
|
||||
|
Loading…
Reference in New Issue
Block a user