summaryrefslogtreecommitdiff
path: root/lib/lsg_irc/np_handler.ex
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/lsg_irc/np_handler.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lsg_irc/np_handler.ex b/lib/lsg_irc/np_handler.ex
index 5f724d4..1a52c75 100644
--- a/lib/lsg_irc/np_handler.ex
+++ b/lib/lsg_irc/np_handler.ex
@@ -8,12 +8,12 @@ defmodule LSG.IRC.NpHandler do
def short_irc_doc, do: "!np (en ce moment sur 115ans)"
def irc_doc, do: @moduledoc
def start_link(client) do
- GenServer.start_link(__MODULE__, [client])
+ GenServer.start_link(__MODULE__, [client], name: __MODULE__)
end
def init([client]) do
ExIRC.Client.add_handler client, self
- {:ok, _} = Registry.register(LSG.BroadcastRegistry, "icecast", [])
+ {:ok, _} = Registry.register(LSG.BroadcastRegistry, "icecast", [plugin: __MODULE__])
{:ok, client}
end