Make Lua even greater

This commit is contained in:
Přemysl Eric Janouch 2017-01-29 22:52:22 +01:00
parent c353117c0c
commit 54ec44b6b5
Signed by: p
GPG Key ID: B715679E3A361BE6
3 changed files with 5 additions and 25 deletions

View File

@ -38,8 +38,4 @@ function MPD:on_data (data)
end end
end end
ponymap.register_service { ponymap.register_service { name="MPD", flags=0, new_scan=MPD.new }
name = "MPD",
flags = 0,
new_scan = MPD.new
}

View File

@ -76,8 +76,4 @@ function NUT:on_data (data)
self.unit:stop () self.unit:stop ()
end end
ponymap.register_service { ponymap.register_service { name="NUT", flags=0, new_scan=NUT.new }
name = "NUT",
flags = 0,
new_scan = NUT.new
}

View File

@ -81,21 +81,9 @@ end
-- Register everything -- Register everything
ponymap.register_service { ponymap.register_service { name="SOCKS4", flags=0, new_scan=Socks4.new }
name = "SOCKS4",
flags = 0,
new_scan = Socks4.new
}
-- At the moment this is nearly useless -- At the moment this is nearly useless
-- ponymap.register_service { -- ponymap.register_service { name="SOCKS4A", flags=0, new_scan=Socks4A.new }
-- name = "SOCKS4A",
-- flags = 0,
-- new_scan = Socks4A.new
-- }
ponymap.register_service { ponymap.register_service { name="SOCKS5", flags=0, new_scan=Socks5.new }
name = "SOCKS5",
flags = 0,
new_scan = Socks5.new
}