diff options
Diffstat (limited to 'lib/web/live/chat_live.ex')
-rw-r--r-- | lib/web/live/chat_live.ex | 4 |
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) |