summaryrefslogtreecommitdiff
path: root/lib/lsg_irc/base_plugin.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-01 10:30:18 +0200
committerhref <href@random.sh>2021-09-01 10:30:18 +0200
commit75687711f35355bc30e4829439384aab28fcac6d (patch)
tree8f3256f472893c39720a684d390e890a152f7303 /lib/lsg_irc/base_plugin.ex
parentlink: post_* callbacks; html & pdftitle. (diff)
Commit all the changes that hasn't been committed + updates.
Diffstat (limited to 'lib/lsg_irc/base_plugin.ex')
-rw-r--r--lib/lsg_irc/base_plugin.ex12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/lsg_irc/base_plugin.ex b/lib/lsg_irc/base_plugin.ex
index 69b02e8..a95f45c 100644
--- a/lib/lsg_irc/base_plugin.ex
+++ b/lib/lsg_irc/base_plugin.ex
@@ -3,14 +3,15 @@ defmodule LSG.IRC.BasePlugin do
def irc_doc, do: nil
def start_link() do
- GenServer.start_link(__MODULE__, [])
+ GenServer.start_link(__MODULE__, [], name: __MODULE__)
end
def init([]) do
- {:ok, _} = Registry.register(IRC.PubSub, "trigger:version", [])
- {:ok, _} = Registry.register(IRC.PubSub, "trigger:help", [])
- {:ok, _} = Registry.register(IRC.PubSub, "trigger:liquidrender", [])
- {:ok, _} = Registry.register(IRC.PubSub, "trigger:plugin", [])
+ regopts = [plugin: __MODULE__]
+ {:ok, _} = Registry.register(IRC.PubSub, "trigger:version", regopts)
+ {:ok, _} = Registry.register(IRC.PubSub, "trigger:help", regopts)
+ {:ok, _} = Registry.register(IRC.PubSub, "trigger:liquidrender", regopts)
+ {:ok, _} = Registry.register(IRC.PubSub, "trigger:plugin", regopts)
{:ok, nil}
end
@@ -105,4 +106,3 @@ defmodule LSG.IRC.BasePlugin do
end
end
-