diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-01-29 22:52:22 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-01-29 22:52:22 +0100 |
commit | 54ec44b6b517a382fa316e974ef349bc46e214fb (patch) | |
tree | 015e8cc01bc5916ada6b8e80e6d7a5a12eee25b9 | |
parent | c353117c0c93300cf8277e477f2bc2c3760fc02c (diff) | |
download | ponymap-54ec44b6b517a382fa316e974ef349bc46e214fb.tar.gz ponymap-54ec44b6b517a382fa316e974ef349bc46e214fb.tar.xz ponymap-54ec44b6b517a382fa316e974ef349bc46e214fb.zip |
Make Lua even greater
-rw-r--r-- | plugins/mpd.lua | 6 | ||||
-rw-r--r-- | plugins/nut.lua | 6 | ||||
-rw-r--r-- | 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 } |