summary refs log tree commit diff stats
path: root/src/common/plugin.c
diff options
context:
space:
mode:
authorBakasuraRCE <bakasura@protonmail.ch>2020-07-29 09:50:12 -0500
committerPatrick <tingping@tingping.se>2021-05-23 21:17:07 -0500
commitda26097aab554c44540c25f0741dc19f6e92cc41 (patch)
tree6212a727562862d555d5970fba00d4651d82e309 /src/common/plugin.c
parente03fab07ed77db699abbde01e2b872019df07b80 (diff)
notification: Implement notification option for channels
Diffstat (limited to 'src/common/plugin.c')
-rw-r--r--src/common/plugin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/plugin.c b/src/common/plugin.c
index 00cf4599..f2c2ecfb 100644
--- a/src/common/plugin.c
+++ b/src/common/plugin.c
@@ -138,7 +138,9 @@ enum
 	CHANNEL_FLAG_TRAY_UNSET            = 1 << 18,
 	CHANNEL_FLAG_TASKBAR               = 1 << 19,
 	CHANNEL_FLAG_TASKBAR_UNSET         = 1 << 20,
-	CHANNEL_FLAG_COUNT                 = 21
+	CHANNEL_FLAG_BALLOON               = 1 << 21,
+	CHANNEL_FLAG_BALLOON_UNSET         = 1 << 22,
+	CHANNEL_FLAG_COUNT                 = 23
 };
 
 GSList *plugin_list = NULL;	/* export for plugingui.c */
@@ -1633,6 +1635,8 @@ hexchat_list_int (hexchat_plugin *ph, hexchat_list *xlist, const char *name)
 			channel_flags[18] = ((struct session *)data)->alert_tray == SET_DEFAULT;
 			channel_flags[19] = ((struct session *)data)->alert_taskbar;
 			channel_flags[20] = ((struct session *)data)->alert_taskbar == SET_DEFAULT;
+			channel_flags[21] = ((struct session *)data)->alert_balloon;
+			channel_flags[22] = ((struct session *)data)->alert_balloon == SET_DEFAULT;
 
 			/* Set flags */
 			for (channel_flag = 0; channel_flag < CHANNEL_FLAG_COUNT; ++channel_flag) {