Add debug support in production;

This commit is contained in:
Benjamin Bouvier 2016-11-07 13:22:56 +01:00
parent a9da941157
commit 173381e242
2 changed files with 5 additions and 2 deletions

View File

@ -23,5 +23,8 @@ module.exports = {
hostname: '0.0.0.0', hostname: '0.0.0.0',
// Instance of lstu to shorten links -- keep empty to not use. // Instance of lstu to shorten links -- keep empty to not use.
lstu: 'https://lstu.fr' lstu: 'https://lstu.fr',
// Whether the irc client debug messages should be printed.
debug: true
} }

View File

@ -19,7 +19,7 @@ for (var who in config.reports) {
} }
var client = new irc.Client(config.server, config.nick, { var client = new irc.Client(config.server, config.nick, {
//debug: true, debug: config.debug || false,
channels: channels, channels: channels,
userName: config.userName, userName: config.userName,
realName: config.realName, realName: config.realName,