diff options
author | Jordan Bracco <href@random.sh> | 2022-12-17 13:01:29 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:41 +0100 |
commit | 4b81c028885a53806dd5592f89b845e1f764c41e (patch) | |
tree | 04ec2ea4b7502a76b82d9314d373c266e506926d /lib/irc | |
parent | feat(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/irc')
-rw-r--r-- | lib/irc/irc.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irc/irc.ex b/lib/irc/irc.ex index fbad6e1..d9fdfb5 100644 --- a/lib/irc/irc.ex +++ b/lib/irc/irc.ex @@ -41,7 +41,7 @@ defmodule IRC do def admin?(%Message{sender: sender}), do: admin?(sender) def admin?(%{nick: nick, user: user, host: host}) do - for {n, u, h} <- Application.get_env(:lsg, :irc, [])[:admins]||[] do + for {n, u, h} <- LSG.IRC.env(:admins, []) do admin_part_match?(n, nick) && admin_part_match?(u, user) && admin_part_match?(h, host) end |> Enum.any? |