diff options
Diffstat (limited to 'weechat/src/gui/gui.h')
-rw-r--r-- | weechat/src/gui/gui.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/weechat/src/gui/gui.h b/weechat/src/gui/gui.h index 1056ce1f6..069e9346a 100644 --- a/weechat/src/gui/gui.h +++ b/weechat/src/gui/gui.h @@ -80,6 +80,7 @@ #define MSG_TYPE_INFO 4 #define MSG_TYPE_MSG 8 #define MSG_TYPE_HIGHLIGHT 16 +#define MSG_TYPE_NOLOG 32 #define gui_printf_color(buffer, color, fmt, argz...) \ gui_printf_color_type(buffer, MSG_TYPE_INFO, color, fmt, ##argz) @@ -87,6 +88,9 @@ #define gui_printf(buffer, fmt, argz...) \ gui_printf_color_type(buffer, MSG_TYPE_INFO, -1, fmt, ##argz) +#define gui_printf_nolog(buffer, fmt, argz...) \ + gui_printf_color_type(buffer, MSG_TYPE_INFO | MSG_TYPE_NOLOG, -1, fmt, ##argz) + typedef struct t_gui_message t_gui_message; struct t_gui_message @@ -104,6 +108,7 @@ struct t_gui_line { int length; /* length of the line (in char) */ int length_align; /* alignment length (time or time/nick) */ + int log_write; /* = 1 if line will be written to log */ int line_with_message; /* line contains a message from a user? */ int line_with_highlight; /* line contains highlight */ t_gui_message *messages; /* messages for the line */ |