Squash warning in wordbot re: function parens

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-07-17 17:40:14 -07:00
parent 880f363792
commit 9cfc77d1a4

View File

@@ -148,7 +148,7 @@ defmodule Omnibot.Contrib.Wordbot do
@impl true @impl true
def on_channel_msg(irc, channel, nick, msg) do def on_channel_msg(irc, channel, nick, msg) do
if nick not in cfg[:ignore] do if nick not in cfg()[:ignore] do
words = Regex.split(@split_pattern, msg) |> MapSet.new() words = Regex.split(@split_pattern, msg) |> MapSet.new()
game_words = Wordbot.Db.unmatched_words(channel) |> MapSet.new() game_words = Wordbot.Db.unmatched_words(channel) |> MapSet.new()
MapSet.intersection(words, game_words) MapSet.intersection(words, game_words)