We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec56eca commit 0ef0f09Copy full SHA for 0ef0f09
lib/bot.js
@@ -92,11 +92,12 @@ class Bot {
92
};
93
94
// default encoding to UTF-8 so messages to Discord aren't corrupted
95
- if (!('encoding' in ircOptions)) {
+ if (!Object.prototype.hasOwnProperty.call(ircOptions, 'encoding')) {
96
if (irc.canConvertEncoding()) {
97
ircOptions.encoding = 'utf-8';
98
} else {
99
- logger.warn('Cannot convert message encoding; you may encounter corrupted characters with non-English text.');
+ logger.warn('Cannot convert message encoding; you may encounter corrupted characters with non-English text.\n' +
100
+ 'For information on how to fix this, please see: https://github.com/Throne3d/node-irc#character-set-detection');
101
}
102
103
0 commit comments