summaryrefslogtreecommitdiff
path: root/lib/web
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-20 02:32:12 +0000
committerJordan Bracco <href@random.sh>2022-12-20 19:29:41 +0100
commit9aecb2bf2c4210d8b6b6976f749902b23ade83d6 (patch)
tree9547fdefe13f8c7695a8dea389ffd9d4ddbaf83c /lib/web
parentActually do not prefix folders with nola_ refs T77 (diff)
IRC.PubSub -> Nola.PubSub, refs T77
Diffstat (limited to '')
-rw-r--r--lib/web/controllers/irc_auth_sse_controller.ex2
-rw-r--r--lib/web/live/chat_live.ex4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/web/controllers/irc_auth_sse_controller.ex b/lib/web/controllers/irc_auth_sse_controller.ex
index 62ee2b5..01c840b 100644
--- a/lib/web/controllers/irc_auth_sse_controller.ex
+++ b/lib/web/controllers/irc_auth_sse_controller.ex
@@ -26,7 +26,7 @@ defmodule NolaWeb.IrcAuthSseController do
def subscribe(conn) do
:timer.send_interval(@ping_interval, {:event, :ping})
:timer.send_after(@expire_delay, {:event, :expire})
- {:ok, _} = Registry.register(IRC.PubSub, "messages:private", [])
+ {:ok, _} = Registry.register(Nola.PubSub, "messages:private", [])
conn
end
diff --git a/lib/web/live/chat_live.ex b/lib/web/live/chat_live.ex
index 678ea36..88afa0b 100644
--- a/lib/web/live/chat_live.ex
+++ b/lib/web/live/chat_live.ex
@@ -9,9 +9,9 @@ defmodule NolaWeb.ChatLive do
account = IRC.Account.get(account_id)
membership = IRC.Membership.of_account(IRC.Account.get("DRgpD4fLf8PDJMLp8Dtb"))
if account && connection && Enum.member?(membership, {connection.network, chan}) do
- {:ok, _} = Registry.register(IRC.PubSub, "#{connection.network}:events", plugin: __MODULE__)
+ {:ok, _} = Registry.register(Nola.PubSub, "#{connection.network}:events", plugin: __MODULE__)
for t <- ["messages", "triggers", "outputs", "events"] do
- {:ok, _} = Registry.register(IRC.PubSub, "#{connection.network}/#{chan}:#{t}", plugin: __MODULE__)
+ {:ok, _} = Registry.register(Nola.PubSub, "#{connection.network}/#{chan}:#{t}", plugin: __MODULE__)
end
IRC.PuppetConnection.start(account, connection)