Add debug support in production;
This commit is contained in:
parent
a9da941157
commit
173381e242
@ -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
|
||||||
}
|
}
|
||||||
|
2
index.js
2
index.js
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user