fix addquote

This commit is contained in:
reality 2013-07-04 22:32:56 +00:00
parent b6a56e23f6
commit a821547838

View File

@ -145,7 +145,7 @@ var commands = function(dbot) {
// Add qutoe category documenting ban // Add qutoe category documenting ban
if(this.config.document_bans && _.has(dbot.modules, 'quotes')) { if(this.config.document_bans && _.has(dbot.modules, 'quotes')) {
dbot.db.quoteArrs['ban_' + banee.toLowerCase()] = [ quoteString ]; dbot.api.quotes.addQuote('ban_' + banee.toLowerCase(), quoteString, function() {});
notifyString += ' ' + dbot.t('quote_recorded', { 'user': banee }); notifyString += ' ' + dbot.t('quote_recorded', { 'user': banee });
} }