From 2e08b3a2dafa743c0d64e110a1f53aaf5ae6421c Mon Sep 17 00:00:00 2001 From: TingPing Date: Tue, 15 Oct 2013 18:30:37 -0400 Subject: [PATCH] Add remaining chanopts to plugin api In flags of get_list('channels') --- src/common/plugin.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/common/plugin.c b/src/common/plugin.c index ff1c740d..228983f3 100644 --- a/src/common/plugin.c +++ b/src/common/plugin.c @@ -1601,13 +1601,25 @@ hexchat_list_int (hexchat_plugin *ph, hexchat_list *xlist, const char *name) case 0xd1b: /* id */ return ((struct session *)data)->server->id; case 0x5cfee87: /* flags */ - tmp = ((struct session *)data)->alert_taskbar; /* bit 10 */ + /* used if text_strip is unset */ /* 16 */ + tmp <<= 1; + tmp = ((struct session *)data)->text_strip; /* 15 */ + tmp <<= 1; + /* used if text_scrollback is unset */ /* 14 */ + tmp <<= 1; + tmp |= ((struct session *)data)->text_scrollback; /* 13 */ + tmp <<= 1; + /* used if text_logging is unset */ /* 12 */ + tmp <<= 1; + tmp |= ((struct session *)data)->text_logging; /* 11 */ + tmp <<= 1; + tmp |= ((struct session *)data)->alert_taskbar; /* 10 */ tmp <<= 1; tmp |= ((struct session *)data)->alert_tray; /* 9 */ tmp <<= 1; tmp |= ((struct session *)data)->alert_beep; /* 8 */ tmp <<= 1; - /*tmp |= ((struct session *)data)->color_paste;*/ /* 7 */ + /* used if text_hidejoinpart is unset */ /* 7 */ tmp <<= 1; tmp |= ((struct session *)data)->text_hidejoinpart; /* 6 */ tmp <<= 1;