From 644237cf7dae49c6e17ae7d7d5d6adf5deed6e2a Mon Sep 17 00:00:00 2001 From: Rnhmjoj Date: Mon, 27 Apr 2015 17:29:58 +0200 Subject: [PATCH] Fix bug in isFromAdmin --- scripts/shell.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/shell.coffee b/scripts/shell.coffee index 74b44fc..284db57 100644 --- a/scripts/shell.coffee +++ b/scripts/shell.coffee @@ -15,7 +15,7 @@ cp = require 'child_process' nope = ['BZBZ 400-BAD-REQUEST', 'BZBZ DOES-NOT-COMPUTE', 'BZBZ ADMIN-NOT-DETECTED', 'BZBZ IS-NOT-AUTHORIZED', 'BZBZ ACCESS-DENIED'] isFromAdmin = (res) -> - res.message.user.room? is process.env.ADMIN_ROOM?.replace(':','#') or res.robot.adapterName is 'shell' + res.message.user.room is process.env.ADMIN_ROOM?.replace(':','#') or res.robot.adapterName is 'shell' module.exports = (robot) -> robot.respond /(?:run|esegui|shell) (git|npm) (.+)/i, (res) ->