diff options
Diffstat (limited to 'lib/lsg_web')
-rw-r--r-- | lib/lsg_web/controllers/page_controller.ex | 2 | ||||
-rw-r--r-- | lib/lsg_web/views/layout_view.ex | 2 |
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) |