From ce394102c2cfd509f99cd69f39751c139ff7d5e8 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 26 Oct 2015 13:04:12 +0100 Subject: [PATCH] Fixed bot command with (at) Closes #940 --- app/js/lib/ng_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index 4afe6c31..171abad6 100644 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -1618,7 +1618,7 @@ angular.module('izhukov.utils', []) var command = entityText.substr(1); var bot, atPos; if ((atPos = command.indexOf('@')) != -1) { - bot = command.substr(atPos); + bot = command.substr(atPos + 1); command = command.substr(0, atPos); } else { bot = options.fromBot;