summaryrefslogtreecommitdiff
path: root/src/core/wee-config.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-01-30 14:59:16 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-01-30 14:59:16 +0100
commitb05f21f26a190539efbc2551195b2db922dafd71 (patch)
treec1f3c11ffd11a53faa1904f13288b0c7c483718d /src/core/wee-config.c
parentb5534e6e051b777f1e31e73090329fc5d18bbeeb (diff)
downloadweechat-b05f21f26a190539efbc2551195b2db922dafd71.zip
Add plugin name in buffer name for filters
For example, freenode.#weechat becomes irc.freenode.#weechat for buffer name in filter.
Diffstat (limited to 'src/core/wee-config.c')
-rw-r--r--src/core/wee-config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index 8715d26c8..14770ec0d 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -900,9 +900,11 @@ config_weechat_filter_write_cb (void *data, struct t_config_file *config_file,
{
config_file_write_line (config_file,
ptr_filter->name,
- "%s;%s;%s;%s",
+ "%s;%s%s%s;%s;%s",
(ptr_filter->enabled) ? "on" : "off",
- ptr_filter->buffer,
+ (ptr_filter->plugin_name) ? ptr_filter->plugin_name : "",
+ (ptr_filter->plugin_name) ? "." : "",
+ ptr_filter->buffer_name,
ptr_filter->tags,
ptr_filter->regex);
}