Last active
December 22, 2019 16:49
-
-
Save prawnsalad/c1d3a35c51aef45644a6daa7fd0ca044 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kiwi.plugin('myplugin', function(kiwi) { | |
kiwi.on('irc.message', function(message, network, event) { | |
if (message.nick === '*bnc' && message.message) { | |
// Only show *bnc messages if we have the buffer open. | |
// We don't want confusing messages to users | |
let buffer = network.bufferByName('*bnc'); | |
if (!buffer) { | |
event.handled = true; | |
} | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment