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/core/wee-command.c | |
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/core/wee-command.c')
-rw-r--r-- | src/core/wee-command.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 8041fc0bd..cbd763792 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -497,14 +497,17 @@ command_buffer (void *data, struct t_gui_buffer *buffer, ptr_buffer = ptr_buffer->next_buffer) { gui_chat_printf (NULL, - " %s[%s%d%s]%s (%s) %s", + " %s[%s%d%s]%s (%s) %s%s%s (notify: %d)", GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS), GUI_COLOR(GUI_COLOR_CHAT), ptr_buffer->number, GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS), GUI_COLOR(GUI_COLOR_CHAT), plugin_get_name (ptr_buffer->plugin), - ptr_buffer->name); + GUI_COLOR(GUI_COLOR_CHAT_BUFFER), + ptr_buffer->name, + GUI_COLOR(GUI_COLOR_CHAT), + ptr_buffer->notify); } return WEECHAT_RC_OK; @@ -708,8 +711,7 @@ command_buffer (void *data, struct t_gui_buffer *buffer, ptr_buffer = gui_buffer_search_by_partial_name (NULL, argv_eol[1]); if (ptr_buffer) { - gui_window_switch_to_buffer (gui_current_window, - ptr_buffer); + gui_window_switch_to_buffer (gui_current_window, ptr_buffer, 1); } } |