Last active
          December 22, 2019 16:49 
        
      - 
      
- 
        Save prawnsalad/c1d3a35c51aef45644a6daa7fd0ca044 to your computer and use it in GitHub Desktop. 
Revisions
- 
        prawnsalad revised this gist Dec 22, 2019 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewingThis file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ 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 @@ -8,3 +9,4 @@ } } }); }); 
- 
        prawnsalad created this gist Dec 22, 2019 .There are no files selected for viewingThis file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ kiwi.on('irc.message', (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; } } });