From 75687711f35355bc30e4829439384aab28fcac6d Mon Sep 17 00:00:00 2001 From: href Date: Wed, 1 Sep 2021 10:30:18 +0200 Subject: Commit all the changes that hasn't been committed + updates. --- lib/lsg_irc/script_plugin.ex | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/lsg_irc/script_plugin.ex') diff --git a/lib/lsg_irc/script_plugin.ex b/lib/lsg_irc/script_plugin.ex index 28ae2a7..bae6f3f 100644 --- a/lib/lsg_irc/script_plugin.ex +++ b/lib/lsg_irc/script_plugin.ex @@ -19,11 +19,11 @@ defmodule LSG.IRC.ScriptPlugin do def irc_doc, do: @ircdoc def start_link() do - GenServer.start_link(__MODULE__, []) + GenServer.start_link(__MODULE__, [], name: __MODULE__) end def init([]) do - {:ok, _} = Registry.register(IRC.PubSub, "trigger:script", []) + {:ok, _} = Registry.register(IRC.PubSub, "trigger:script", [plugin: __MODULE__]) dets_filename = (LSG.data_path() <> "/" <> "scripts.dets") |> String.to_charlist {:ok, dets} = :dets.open_file(dets_filename, []) {:ok, %{dets: dets}} @@ -40,4 +40,3 @@ defmodule LSG.IRC.ScriptPlugin do end end - -- cgit v1.2.3