summaryrefslogtreecommitdiff
path: root/lib/web/live/chat_live.ex
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-20 12:22:41 +0000
committerJordan Bracco <href@random.sh>2022-12-20 19:29:42 +0100
commite78e8049334bea5336d87f0909d9e1a3876989e5 (patch)
tree88f1abcd9f814d0f8d68813029c99d89731cc66d /lib/web/live/chat_live.ex
parentRe-reorg files a bit, lol, refs T77. (diff)
Rename IRC.{Connection,PuppetConnection} to Nola.Irc.{Connection,PuppetConnection}, refs T77.
Diffstat (limited to 'lib/web/live/chat_live.ex')
-rw-r--r--lib/web/live/chat_live.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/web/live/chat_live.ex b/lib/web/live/chat_live.ex
index 3f126f2..f8bab7d 100644
--- a/lib/web/live/chat_live.ex
+++ b/lib/web/live/chat_live.ex
@@ -5,7 +5,7 @@ defmodule NolaWeb.ChatLive do
def mount(%{"network" => network, "chan" => chan}, %{"account" => account_id}, socket) do
chan = NolaWeb.reformat_chan(chan)
- connection = IRC.Connection.get_network(network, chan)
+ connection = Nola.Irc.Connection.get_network(network, chan)
account = Nola.Account.get(account_id)
membership = Nola.Membership.of_account(Nola.Account.get("DRgpD4fLf8PDJMLp8Dtb"))
if account && connection && Enum.member?(membership, {connection.network, chan}) do
@@ -14,7 +14,7 @@ defmodule NolaWeb.ChatLive do
{:ok, _} = Registry.register(Nola.PubSub, "#{connection.network}/#{chan}:#{t}", plugin: __MODULE__)
end
- IRC.PuppetConnection.start(account, connection)
+ Nola.Irc.PuppetConnection.start(account, connection)
users = Nola.UserTrack.channel(connection.network, chan)
|> Enum.map(fn(tuple) -> Nola.UserTrack.User.from_tuple(tuple) end)