diff options
author | Jordan Bracco <href@random.sh> | 2022-12-17 13:47:11 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:41 +0100 |
commit | fd4afd7c7acd9b5fda75b628a7e19d0149d8b889 (patch) | |
tree | df571d49fa9dc9c3cd58c94033b9fc81c7b7f8ec /lib/lsg_web/controllers/irc_controller.ex | |
parent | Rename to Nola, pt. 1. Refs T77 (diff) |
Nola rename cont. pt. 2. Refs T77.
`find lib -name "*.ex" -type f | xargs sed -i '' 's/LSG/Nola/g'`
Diffstat (limited to '')
-rw-r--r-- | lib/lsg_web/controllers/irc_controller.ex | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/lsg_web/controllers/irc_controller.ex b/lib/lsg_web/controllers/irc_controller.ex index d518481..90d9853 100644 --- a/lib/lsg_web/controllers/irc_controller.ex +++ b/lib/lsg_web/controllers/irc_controller.ex @@ -1,11 +1,11 @@ -defmodule LSGWeb.IrcController do - use LSGWeb, :controller +defmodule NolaWeb.IrcController do + use NolaWeb, :controller - plug LSGWeb.ContextPlug + plug NolaWeb.ContextPlug def index(conn, params) do network = Map.get(params, "network") - channel = if c = Map.get(params, "chan"), do: LSGWeb.reformat_chan(c) + channel = if c = Map.get(params, "chan"), do: NolaWeb.reformat_chan(c) commands = for mod <- Enum.uniq([IRC.Account.AccountPlugin] ++ IRC.Plugin.enabled()) do if is_atom(mod) do identifier = Module.split(mod) |> List.last |> String.replace("Plugin", "") |> Macro.underscore @@ -42,7 +42,7 @@ defmodule LSGWeb.IrcController do defp do_txt(conn, nil) do - doc = LSG.IRC.TxtPlugin.irc_doc() + doc = Nola.IRC.TxtPlugin.irc_doc() data = data() main = Enum.filter(data, fn({trigger, _}) -> !String.contains?(trigger, ".") end) |> Enum.into(Map.new) system = Enum.filter(data, fn({trigger, _}) -> String.contains?(trigger, ".") end) |> Enum.into(Map.new) @@ -55,7 +55,7 @@ defmodule LSGWeb.IrcController do defp do_txt(conn, txt) do data = data() base_url = cond do - conn.assigns[:chan] -> "/#{conn.assigns.network}/#{LSGWeb.format_chan(conn.assigns.chan)}" + conn.assigns[:chan] -> "/#{conn.assigns.network}/#{NolaWeb.format_chan(conn.assigns.chan)}" true -> "/-" end if lines = Map.get(data, txt) do |