summaryrefslogtreecommitdiff
path: root/lib/lsg_web/controllers/irc_controller.ex
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/lsg_web/controllers/irc_controller.ex12
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