summaryrefslogtreecommitdiff
path: root/lib/lsg_web
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-17 13:01:29 +0000
committerJordan Bracco <href@random.sh>2022-12-20 19:29:41 +0100
commit4b81c028885a53806dd5592f89b845e1f764c41e (patch)
tree04ec2ea4b7502a76b82d9314d373c266e506926d /lib/lsg_web
parentfeat(couch): convert slashes to %2F in paths, allowing to use database or doc... (diff)
Rename to Nola, pt. 1. Refs T77
Diffstat (limited to 'lib/lsg_web')
-rw-r--r--lib/lsg_web/controllers/page_controller.ex2
-rw-r--r--lib/lsg_web/views/layout_view.ex2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/lsg_web/controllers/page_controller.ex b/lib/lsg_web/controllers/page_controller.ex
index a87cf1d..94c9c70 100644
--- a/lib/lsg_web/controllers/page_controller.ex
+++ b/lib/lsg_web/controllers/page_controller.ex
@@ -33,7 +33,7 @@ defmodule LSGWeb.PageController do
end
def irc(conn, _) do
- bot_helps = for mod <- Application.get_env(:lsg, :irc)[:handlers] do
+ bot_helps = for mod <- LSG.IRC.env(:handlers) do
mod.irc_doc()
end
render conn, "irc.html", bot_helps: bot_helps
diff --git a/lib/lsg_web/views/layout_view.ex b/lib/lsg_web/views/layout_view.ex
index 41c5341..720281d 100644
--- a/lib/lsg_web/views/layout_view.ex
+++ b/lib/lsg_web/views/layout_view.ex
@@ -24,7 +24,7 @@ defmodule LSGWeb.LayoutView do
conn.assigns[:chan] ->
"#{conn.assigns.chan} @ #{conn.assigns.network}"
conn.assigns[:network] -> conn.assigns.network
- true -> Keyword.get(Application.get_env(:lsg, :irc), :name, "ircbot")
+ true -> Keyword.get(LSG.name())
end
breadcrumb_title = Enum.map(Map.get(conn.assigns, :breadcrumbs)||[], fn({title, _href}) -> title end)