summaryrefslogtreecommitdiffstats
path: root/src/Reaktor
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-01-27 23:48:42 +0100
committertv <tv@krebsco.de>2019-01-27 23:48:42 +0100
commit92ca5dbea78d4520e1cc0a3162cee2bbeb6c4c88 (patch)
tree334434c4a9fdd5123baa9203559777479ef6cbdf /src/Reaktor
parent0e199f7a357a4c5973e5837ec67699cf224ca69c (diff)
Reaktor.Plugins.Mention: split using isNick
Diffstat (limited to 'src/Reaktor')
-rw-r--r--src/Reaktor/Plugins/Mention.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Reaktor/Plugins/Mention.hs b/src/Reaktor/Plugins/Mention.hs
index b288fdb..b0dcca1 100644
--- a/src/Reaktor/Plugins/Mention.hs
+++ b/src/Reaktor/Plugins/Mention.hs
@@ -3,7 +3,7 @@
{-# LANGUAGE RecordWildCards #-}
module Reaktor.Plugins.Mention (new) where
-import qualified Data.Char
+import qualified Data.Char.Extended as C
import qualified Data.Text as T
import Prelude.Extended
import Reaktor
@@ -20,4 +20,4 @@ new Actions{..} = do
where
isMention nick text =
not (T.isPrefixOf (nick <> ":") text) &&
- any (==nick) (T.split (not . Data.Char.isAlphaNum) text)
+ any (==nick) (T.split (not . C.isNick) text)