aboutsummaryrefslogtreecommitdiffstats
path: root/src/Plugin.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Plugin.hs')
-rw-r--r--src/Plugin.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Plugin.hs b/src/Plugin.hs
index 26432d9..0ff1367 100644
--- a/src/Plugin.hs
+++ b/src/Plugin.hs
@@ -22,7 +22,7 @@ matchPlugin message = firstPlugin $ matchPlugins message plugins
-- | Filter the list of plugins to those that match the given message.
matchPlugins :: M.Message -> [Plugin] -> [Plugin]
matchPlugins message plugins =
- [p | p <- plugins, (T.unpack $ M.text message) =~ matchRegex p]
+ [p | p <- plugins, M.textStr message =~ matchRegex p]
-- | Run the action belonging to the plugin, stored in its `perform` field.
performPlugin :: Plugin -> PluginAction