diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-30 17:18:28 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-30 17:18:28 +0100 |
commit | 6f442bbfc13a73f9b993f5bbd5928cab9a1321c4 (patch) | |
tree | b3367af39b4ec208f4b72fc458edb44b2c47b556 /src/plugins/notify | |
parent | 2f68ec7f3655efc9f814b2f4298d27029d1c6824 (diff) | |
download | weechat-6f442bbfc13a73f9b993f5bbd5928cab9a1321c4.zip |
Add new features to logger plugin (command /logger, log level, level by buffer, mask by buffer, ..), fix some bugs
New features:
- new command /logger
- log level, to log only some messages, according to importance (task #8592)
- level by buffer: custom level for some buffers (or group of buffers)
- log filename mask by buffer (or group of buffers)
- marker line is added after display of backlog
- add "delete" callback for config file sections
- add "mkdir_parents" function to plugin API
- remove old log options in IRC plugin
Bug fix:
- marker line is set only when user switches buffer (not when a plugin force
switch, like IRC plugin does when opening server or channel buffer)
- backlog fixed (sometimes lines were not properly displayed)
Diffstat (limited to 'src/plugins/notify')
-rw-r--r-- | src/plugins/notify/notify.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/notify/notify.c b/src/plugins/notify/notify.c index 9c79d07d9..2855902c0 100644 --- a/src/plugins/notify/notify.c +++ b/src/plugins/notify/notify.c @@ -331,7 +331,8 @@ notify_config_init () NULL, NULL, NULL, NULL, NULL, NULL, - ¬ify_config_create_option, NULL); + ¬ify_config_create_option, NULL, + NULL, NULL); if (!ptr_section) { weechat_config_free (notify_config_file); @@ -404,10 +405,11 @@ notify_set (struct t_gui_buffer *buffer, const char *name, int value) /* display message */ if (value >= 0) - weechat_printf (NULL, _("Notify level: %s => %s"), - name, notify_string[value]); + weechat_printf (NULL, "%s: \"%s\" => %s", + NOTIFY_PLUGIN_NAME, name, notify_string[value]); else - weechat_printf (NULL, _("Notify level: %s: removed"), name); + weechat_printf (NULL, _("%s: \"%s\" removed"), + NOTIFY_PLUGIN_NAME, name); } } |