summaryrefslogtreecommitdiff
path: root/lib/lsg_irc/link_plugin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/lsg_irc/link_plugin.ex4
-rw-r--r--lib/lsg_irc/link_plugin/youtube.ex4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/lsg_irc/link_plugin.ex b/lib/lsg_irc/link_plugin.ex
index 0c785a0..3d657ad 100644
--- a/lib/lsg_irc/link_plugin.ex
+++ b/lib/lsg_irc/link_plugin.ex
@@ -52,8 +52,8 @@ defmodule LSG.IRC.LinkPlugin do
defstruct [:client]
def init([]) do
- {:ok, _} = Registry.register(IRC.PubSub, "message", [plugin: __MODULE__])
- #{:ok, _} = Registry.register(IRC.PubSub, "message:telegram", [plugin: __MODULE__])
+ {:ok, _} = Registry.register(IRC.PubSub, "messages", [plugin: __MODULE__])
+ #{:ok, _} = Registry.register(IRC.PubSub, "messages:telegram", [plugin: __MODULE__])
Logger.info("Link handler started")
{:ok, %__MODULE__{}}
end
diff --git a/lib/lsg_irc/link_plugin/youtube.ex b/lib/lsg_irc/link_plugin/youtube.ex
index fd0f1b4..536cab6 100644
--- a/lib/lsg_irc/link_plugin/youtube.ex
+++ b/lib/lsg_irc/link_plugin/youtube.ex
@@ -54,8 +54,8 @@ defmodule LSG.IRC.LinkPlugin.YouTube do
|> Timex.format("{relative}", :relative)
|> elem(1)
- line = if Keyword.get(opts, :invidious, "yewtu.be") do
- ["-> https://#{}host}/watch?v=#{video_id}"]
+ line = if host = Keyword.get(opts, :invidious, "yewtu.be") do
+ ["-> https://#{host}/watch?v=#{video_id}"]
else
[]
end