Fixed bot command with (at)

Closes #940
This commit is contained in:
Igor Zhukov 2015-10-26 13:04:12 +01:00
parent 55aa750dcc
commit ce394102c2

View File

@ -1618,7 +1618,7 @@ angular.module('izhukov.utils', [])
var command = entityText.substr(1); var command = entityText.substr(1);
var bot, atPos; var bot, atPos;
if ((atPos = command.indexOf('@')) != -1) { if ((atPos = command.indexOf('@')) != -1) {
bot = command.substr(atPos); bot = command.substr(atPos + 1);
command = command.substr(0, atPos); command = command.substr(0, atPos);
} else { } else {
bot = options.fromBot; bot = options.fromBot;