summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-12-14 11:26:03 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-12-14 11:26:03 +0100
commit811b68991e1635967334b9a2f0ba4468bbb9f44b (patch)
treecaf48db443e263d81955ca83f9e56575eb73d437 /src/core/wee-command.c
parent542dc8cd33e1be4c310cba4253b986a01abe7675 (diff)
downloadweechat-811b68991e1635967334b9a2f0ba4468bbb9f44b.zip
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".
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c9
1 files changed, 7 insertions, 2 deletions
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"),