summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-06-19 14:22:11 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-06-19 14:22:11 +0000
commit71a76ada48d29d62b4b8c4f7b4d5f92495a9a49e (patch)
tree50a863e24a4ba35e39d744d8797359795a748696 /src/gui
parenta7ddb89076340084c5206a913d98224e0b49a97e (diff)
downloadweechat-71a76ada48d29d62b4b8c4f7b4d5f92495a9a49e.zip
Channel notify levels are saved in config file
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-common.c2
-rw-r--r--src/gui/gui.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/gui-common.c b/src/gui/gui-common.c
index e1d9f9112..fb1446c86 100644
--- a/src/gui/gui-common.c
+++ b/src/gui/gui-common.c
@@ -186,7 +186,7 @@ gui_buffer_new (t_gui_window *window, void *server, void *channel, int dcc,
new_buffer->line_complete = 1;
/* notify level */
- new_buffer->notify_level = 3;
+ new_buffer->notify_level = channel_get_notify_level (server, channel);
/* create/append to log file */
new_buffer->log_filename = NULL;
diff --git a/src/gui/gui.h b/src/gui/gui.h
index d684f01ba..63d5ab50c 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -98,6 +98,10 @@
#define gui_printf_nolog(buffer, fmt, argz...) \
gui_printf_type_color(buffer, MSG_TYPE_INFO | MSG_TYPE_NOLOG, -1, fmt, ##argz)
+#define NOTIFY_LEVEL_MIN 0
+#define NOTIFY_LEVEL_MAX 3
+#define NOTIFY_LEVEL_DEFAULT NOTIFY_LEVEL_MAX
+
typedef struct t_gui_message t_gui_message;
struct t_gui_message