diff options
| author | LLLL Colonq <llll@colonq> | 2025-02-14 21:11:04 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-02-14 21:11:04 -0500 |
| commit | cbadd0531a0e78db0118d86ff4104cef234788b3 (patch) | |
| tree | 0c52b320ead155552cd475f8e4cec217dab44cc1 /fig-monitor-irc/src | |
| parent | 2097ed375db2dda1406043720ec366fdfc7be0fc (diff) | |
Update IRC
Diffstat (limited to 'fig-monitor-irc/src')
| -rw-r--r-- | fig-monitor-irc/src/Fig/Monitor/IRC.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fig-monitor-irc/src/Fig/Monitor/IRC.hs b/fig-monitor-irc/src/Fig/Monitor/IRC.hs index 67554b3..2d448d2 100644 --- a/fig-monitor-irc/src/Fig/Monitor/IRC.hs +++ b/fig-monitor-irc/src/Fig/Monitor/IRC.hs @@ -91,7 +91,7 @@ ircBot cfg busAddr = do | ev == [sexp|(monitor irc chat outgoing)|] , Right user <- decodeUtf8 <$> BS.Base64.decodeBase64 (encodeUtf8 euser) , Right msg <- decodeUtf8 <$> BS.Base64.decodeBase64 (encodeUtf8 emsg) -> do - unless (user `elem` (["fabius"] :: [Text])) do + unless (any (Text.isInfixOf user) (["fabius"] :: [Text])) do Chan.writeChan outgoing OutgoingMessage { chan, user, msg = msg } _ -> log $ "Invalid outgoing message: " <> tshow d ) |
