diff options
author | Jordan Bracco <href@random.sh> | 2025-06-25 17:12:20 +0200 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2025-06-25 17:12:20 +0200 |
commit | 338f612129feabf5b6cae28396115c94a0f2b8c2 (patch) | |
tree | df5434fdca637588c954cd808f834da8ecc05d3b /lib/plugins | |
parent | remove sentry (diff) |
update otp
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/preums.ex | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/plugins/preums.ex b/lib/plugins/preums.ex index ac5da20..5891ab3 100644 --- a/lib/plugins/preums.ex +++ b/lib/plugins/preums.ex @@ -37,8 +37,6 @@ defmodule Nola.Plugins.Preums do require Logger - @perfects [~r/preum(s|)/i] - # dets {{chan, day = {yyyy, mm, dd}}, nick, now, perfect?, text} def all(dets) do @@ -291,7 +289,7 @@ defmodule Nola.Plugins.Preums do [] -> # Preums won! - perfect? = Enum.any?(@perfects, fn perfect -> Regex.match?(perfect, text) end) + perfect? = Enum.any?([~r/preum(s|)/i], fn perfect -> Regex.match?(perfect, text) end) item = {key, m.account.id, now, perfect?, text} :dets.insert(state.dets, item) :dets.sync(state.dets) |