From 54ec44b6b517a382fa316e974ef349bc46e214fb Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 29 Jan 2017 22:52:22 +0100 Subject: Make Lua even greater --- plugins/mpd.lua | 6 +----- plugins/nut.lua | 6 +----- plugins/socks.lua | 20 ++++---------------- 3 files changed, 6 insertions(+), 26 deletions(-) diff --git a/plugins/mpd.lua b/plugins/mpd.lua index 27ad6b4..2f33f82 100644 --- a/plugins/mpd.lua +++ b/plugins/mpd.lua @@ -38,8 +38,4 @@ function MPD:on_data (data) end end -ponymap.register_service { - name = "MPD", - flags = 0, - new_scan = MPD.new -} +ponymap.register_service { name="MPD", flags=0, new_scan=MPD.new } diff --git a/plugins/nut.lua b/plugins/nut.lua index 44f139e..b85e7d9 100644 --- a/plugins/nut.lua +++ b/plugins/nut.lua @@ -76,8 +76,4 @@ function NUT:on_data (data) self.unit:stop () end -ponymap.register_service { - name = "NUT", - flags = 0, - new_scan = NUT.new -} +ponymap.register_service { name="NUT", flags=0, new_scan=NUT.new } diff --git a/plugins/socks.lua b/plugins/socks.lua index acf90ff..558683c 100644 --- a/plugins/socks.lua +++ b/plugins/socks.lua @@ -81,21 +81,9 @@ end -- Register everything -ponymap.register_service { - name = "SOCKS4", - flags = 0, - new_scan = Socks4.new -} +ponymap.register_service { name="SOCKS4", flags=0, new_scan=Socks4.new } -- At the moment this is nearly useless --- ponymap.register_service { --- name = "SOCKS4A", --- flags = 0, --- new_scan = Socks4A.new --- } - -ponymap.register_service { - name = "SOCKS5", - flags = 0, - new_scan = Socks5.new -} +-- ponymap.register_service { name="SOCKS4A", flags=0, new_scan=Socks4A.new } + +ponymap.register_service { name="SOCKS5", flags=0, new_scan=Socks5.new } -- cgit v1.2.3-70-g09d2