summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Reaktor/API.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Reaktor/API.hs b/src/Reaktor/API.hs
index 4cc4fe9..83fe27a 100644
--- a/src/Reaktor/API.hs
+++ b/src/Reaktor/API.hs
@@ -79,10 +79,14 @@ main Actions{..} = \case
serveTest :: Message -> Handler NoContent
serveTest = \case
- -- Allowing just private messages to (registered) channels for now.
+ -- Allowing private messages to (registered) channels.
msg@(Message Nothing PRIVMSG [msgtarget,_]) | isChannelName msgtarget -> do
liftIO $ aSend msg
return NoContent
+ -- Allowing notice messages to (registered) channels.
+ msg@(Message Nothing NOTICE [msgtarget,_]) | isChannelName msgtarget -> do
+ liftIO $ aSend msg
+ return NoContent
_ ->
throwError err403
where