summaryrefslogtreecommitdiff
path: root/lib/lsg/application.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2018-02-17 21:21:42 +0100
committerhref <href@random.sh>2018-02-17 21:21:42 +0100
commit50c6a09ff64cb081b27a0c30790b86873449d172 (patch)
treeba1bebfc7e367f169276692e0ac02709d62d6516 /lib/lsg/application.ex
parenttxt: fix against malicious filenames (aka 'fuck you shiv') (diff)
:)
Diffstat (limited to 'lib/lsg/application.ex')
-rw-r--r--lib/lsg/application.ex11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/lsg/application.ex b/lib/lsg/application.ex
index 0df3c87..23db221 100644
--- a/lib/lsg/application.ex
+++ b/lib/lsg/application.ex
@@ -5,7 +5,6 @@ defmodule LSG.Application do
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
- {:ok, irc_client} = ExIRC.start_link!
# Define workers and child supervisors to be supervised
children = [
@@ -16,9 +15,7 @@ defmodule LSG.Application do
worker(Registry, [[keys: :duplicate, name: LSG.BroadcastRegistry]]),
worker(LSG.IcecastAgent, []),
worker(LSG.Icecast, []),
- worker(LSG.IRC.ConnectionHandler, [irc_client]),
- worker(LSG.IRC.LoginHandler, [irc_client]),
- ] ++ irc_handlers(irc_client)
+ ] ++ LSG.IRC.application_childs
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
@@ -33,10 +30,4 @@ defmodule LSG.Application do
:ok
end
- defp irc_handlers(irc_client) do
- import Supervisor.Spec
- for handler <- Application.get_env(:lsg, :irc)[:handlers] do
- worker(handler, [irc_client])
- end
- end
end