diff options
Diffstat (limited to '')
-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) |