diff --git a/index.html b/index.html
index bde5371..b1e1da4 100644
--- a/index.html
+++ b/index.html
@@ -280,7 +280,7 @@ $ openssl req -nodes -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out rel
::
-
|
diff --git a/js/filters.js b/js/filters.js
index bc098c5..6fe60e4 100644
--- a/js/filters.js
+++ b/js/filters.js
@@ -167,4 +167,16 @@ weechat.filter('mathjax', function() {
};
});
+weechat.filter('prefixlimit', function() {
+ return function(input, chars) {
+ if (isNaN(chars)) return input;
+ if (chars <= 0) return '';
+ if (input && input.length > chars) {
+ input = input.substring(0, chars);
+ return input + '+';
+ }
+ return input;
+ };
+});
+
})();
|