summaryrefslogtreecommitdiff
path: root/lib/web/live/chat_live.ex
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-20 15:03:45 +0000
committerJordan Bracco <href@random.sh>2022-12-20 19:29:42 +0100
commitd476f949136571a89eb0a1ada1a0e112c6a1dfb5 (patch)
treec96a18742428175c639fd14b1053b73615ab12e7 /lib/web/live/chat_live.ex
parentchore: config example update, add version to footer, remove useless module, r... (diff)
Finish renaming IRC to Nola.Irc, refs T77.
Diffstat (limited to '')
-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 f8bab7d..8a9f6f2 100644
--- a/lib/web/live/chat_live.ex
+++ b/lib/web/live/chat_live.ex
@@ -22,7 +22,7 @@ defmodule NolaWeb.ChatLive do
Map.put(acc, id, user)
end)
- backlog = case Nola.IRC.Buffer.select_buffer(connection.network, chan) do
+ backlog = case Nola.Plugins.Buffer.select_buffer(connection.network, chan) do
{backlog, _} ->
{backlog, _} = Enum.reduce(backlog, {backlog, nil}, &reduce_contextual_event/2)
Enum.reverse(backlog)
@@ -48,7 +48,7 @@ defmodule NolaWeb.ChatLive do
def handle_event("send", %{"message" => %{"text" => text}}, socket) do
account = Nola.Account.get(socket.assigns.account_id)
- IRC.send_message_as(account, socket.assigns.network, socket.assigns.channel, text, true)
+ Nola.Irc.send_message_as(account, socket.assigns.network, socket.assigns.channel, text, true)
{:noreply, assign(socket, :counter, socket.assigns.counter + 1)}
end