bot debugs and minor bug fix

This commit is contained in:
hydrabolt
2015-08-14 20:56:25 +01:00
parent dc86086e72
commit b6821dab42
2 changed files with 4 additions and 2 deletions

View File

@@ -437,7 +437,7 @@ exports.Client.prototype.sendMessage = function( channel, message, cb, _mentions
} else if ( _mentions === true || _mentions === "auto" || _mentions == null || _mentions == undefined ) {
//want to auto sort mentions
_mentions = [];
var mentionsArray = message.match( /<[^>]*>/g ) || [];
var mentionsArray = message.match( /<@[^>]*>/g ) || [];
for ( mention of mentionsArray ) {
_mentions.push( mention.substring( 2, mention.length - 1 ) );
}