From 811b68991e1635967334b9a2f0ba4468bbb9f44b Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 14 Dec 2013 11:26:03 +0100 Subject: core: add logical "and" between tags in filters, weechat.look.highlight_tags and buffer property "highlight_tags" The logical "and" is made with the separator "+". Example: "irc_notice+nick_toto,nick_test" will match a notice from nick "toto" or any message from nick "test". --- src/core/wee-command.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/core/wee-command.c') diff --git a/src/core/wee-command.c b/src/core/wee-command.c index e7342ff47..5c1956bed 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -6589,8 +6589,11 @@ command_init () " - a name starting with '!' is excluded\n" " - name can start or end with '*' to " "match many buffers\n" - " tags: comma separated list of tags, for " - "example: \"irc_join,irc_part,irc_quit\"\n" + " tags: comma separated list of tags, for example " + "\"irc_join,irc_part,irc_quit\"\n" + " (it is possible to combine many tags as a logical " + "\"and\" with separator \"+\", for example: " + "\"nick_toto+irc_action\")\n" " regex: regular expression to search in line\n" " - use '\\t' to separate prefix from message, special " "chars like '|' must be escaped: '\\|'\n" @@ -6624,6 +6627,8 @@ command_init () " /filter add nicks * irc_366 *\n" " filter nick \"toto\" on IRC channel #weechat:\n" " /filter add toto irc.freenode.#weechat nick_toto *\n" + " filter IRC join/action messages from nick \"toto\":\n" + " /filter add toto * nick_toto+irc_join,nick_toto+irc_action *\n" " filter lines containing \"weechat sucks\" on IRC " "channel #weechat:\n" " /filter add sucks irc.freenode.#weechat * weechat sucks"), -- cgit v1.2.3