Minor change of 'if not' -> 'unless'
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -116,7 +116,7 @@ defmodule Omnibot.Contrib.Markov do
|
|||||||
# self-messages are already ignored, so just check the configured ignore-list
|
# self-messages are already ignored, so just check the configured ignore-list
|
||||||
filter = nick in cfg()[:ignore]
|
filter = nick in cfg()[:ignore]
|
||||||
|| (String.trim(msg) |> String.starts_with?("!"))
|
|| (String.trim(msg) |> String.starts_with?("!"))
|
||||||
if !filter do
|
unless filter do
|
||||||
train(channel, nick, msg)
|
train(channel, nick, msg)
|
||||||
|
|
||||||
# Maybe send user a message
|
# Maybe send user a message
|
||||||
|
|||||||
Reference in New Issue
Block a user