Minor change of 'if not' -> 'unless'

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-07-21 14:59:55 -07:00
parent b1461e24db
commit dac2c7438a

View File

@@ -116,7 +116,7 @@ defmodule Omnibot.Contrib.Markov do
# self-messages are already ignored, so just check the configured ignore-list
filter = nick in cfg()[:ignore]
|| (String.trim(msg) |> String.starts_with?("!"))
if !filter do
unless filter do
train(channel, nick, msg)
# Maybe send user a message