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 66127f5 commit 0a3d31bCopy full SHA for 0a3d31b
src/client.js
@@ -493,13 +493,23 @@ module.exports = class IrcClient extends EventEmitter {
493
}
494
495
addInvite(channel, mask) {
496
- var mode = this.network.supports('INVEX') || 'I';
+ var mode = 'I';
497
+ var invex = this.network.supports('INVEX');
498
+ if (typeof invex === 'string') {
499
+ mode = invex;
500
+ }
501
+
502
var raw = ['MODE', channel, '+' + mode, mask];
503
this.raw(raw);
504
505
506
removeInvite(channel, mask) {
507
508
509
510
511
512
513
var raw = ['MODE', channel, '-' + mode, mask];
514
515
0 commit comments