diff --git a/lib/slack.js b/lib/slack.js index 42b6ae7..da14fdd 100644 --- a/lib/slack.js +++ b/lib/slack.js @@ -3,7 +3,7 @@ module.exports = function(app, config, manager) { app.post('/slack/chat', function(req, res) { - if (config.slack.tokens.includes(req.body.token)) + if (!config.slack.tokens.includes(req.body.token)) return (res.status(500).send("Error: unable to validate message as coming from Slack.")) // (id, time, name, country, message)