diff options
author | tv <tv@krebsco.de> | 2019-01-27 03:23:17 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-01-27 03:27:29 +0100 |
commit | e9ca12a945b1d1c068e9c31050e264cb20690db4 (patch) | |
tree | 6f12a1ede100424ebbd24f97f46bf9c31243d672 /src/Reaktor/Plugins/Mention.hs | |
parent | aaddda85c74540d1dab452dcdddf425927983ea9 (diff) |
Reaktor: add data Commandv0.2.0
Diffstat (limited to 'src/Reaktor/Plugins/Mention.hs')
-rw-r--r-- | src/Reaktor/Plugins/Mention.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Reaktor/Plugins/Mention.hs b/src/Reaktor/Plugins/Mention.hs index b3cdbb8..b288fdb 100644 --- a/src/Reaktor/Plugins/Mention.hs +++ b/src/Reaktor/Plugins/Mention.hs @@ -3,16 +3,16 @@ {-# LANGUAGE RecordWildCards #-} module Reaktor.Plugins.Mention (new) where -import Prelude.Extended import qualified Data.Char import qualified Data.Text as T +import Prelude.Extended import Reaktor new :: Actions -> IO (Message -> IO ()) new Actions{..} = do pure $ \case - Message _ "PRIVMSG" (msgtarget:text:[]) -> do + Message _ PRIVMSG (msgtarget:text:[]) -> do nick <- aGetNick when (isMention nick text) $ do aSend (privmsg msgtarget ["I'm famous!"]) |