diff --git a/config.example.js b/config.example.js index 7ef53bc..88b345c 100644 --- a/config.example.js +++ b/config.example.js @@ -23,5 +23,8 @@ module.exports = { hostname: '0.0.0.0', // 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 } diff --git a/index.js b/index.js index 8b0829a..9a62283 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,7 @@ for (var who in config.reports) { } var client = new irc.Client(config.server, config.nick, { - //debug: true, + debug: config.debug || false, channels: channels, userName: config.userName, realName: config.realName,