diff --git a/index.html b/index.html
index c3caae3..b345cca 100644
--- a/index.html
+++ b/index.html
@@ -334,7 +334,7 @@ npm run build-electron-{windows, darwin, linux}
-
<> |
diff --git a/js/inputbar.js b/js/inputbar.js
index 726db97..a219cb9 100644
--- a/js/inputbar.js
+++ b/js/inputbar.js
@@ -208,7 +208,12 @@ weechat.directive('inputBar', function() {
};
//XXX THIS DOES NOT BELONG HERE!
- $rootScope.addMention = function(prefix) {
+ $rootScope.addMention = function(bufferline) {
+ if (!bufferline.showHiddenBrackets) {
+ // the line is a notice or action or something else that doesn't belong
+ return;
+ }
+ var prefix = bufferline.prefix;
// Extract nick from bufferline prefix
var nick = prefix[prefix.length - 1].text;
|