* FSE quote format is now configurable and random if there are 2:n available

* Remove old 3rd party string-format & replace with string_format.js version
* Some fix some bugs with string_format.js padding, width, and number format
This commit is contained in:
Bryan Ashby 2016-09-04 21:36:26 -06:00
parent d4d64f925d
commit f7c21baa52
25 changed files with 128 additions and 144 deletions

View file

@ -2,6 +2,7 @@
'use strict';
var MenuModule = require('../core/menu_module.js').MenuModule;
const stringFormat = require('../core/string_format.js');
// deps
const async = require('async');
@ -86,10 +87,10 @@ function ErcClientModule(options) {
try {
if(data.userName) {
// user message
text = self.chatEntryFormat.format(data);
text = stringFormat(self.chatEntryFormat, data);
} else {
// system message
text = self.systemEntryFormat.format(data);
text = stringFormat(self.systemEntryFormat, data);
}
} catch(e) {
return self.client.log.warn( { error : e.message }, 'ERC: chatEntryFormat error');