plugin: Fix padding for chanopts in channel flags

This is an API break but it didn't really work
properly before anyway.

Fixes #1666
This commit is contained in:
Patrick Griffis 2016-03-30 08:28:51 -04:00
parent 0635e91dd6
commit f656569eb9

View File

@ -1567,6 +1567,14 @@ hexchat_list_int (hexchat_plugin *ph, hexchat_list *xlist, const char *name)
case 0xd1b: /* id */ case 0xd1b: /* id */
return ((struct session *)data)->server->id; return ((struct session *)data)->server->id;
case 0x5cfee87: /* flags */ case 0x5cfee87: /* flags */
/* used if alert_taskbar is unset */ /* 20 */
tmp <<= 1;
tmp |= ((struct session *)data)->alert_taskbar; /* 19 */
tmp <<= 1;
/* used if alert_tray is unset */ /* 18 */
tmp <<= 1;
tmp |= ((struct session *)data)->alert_tray; /* 17 */
tmp <<= 1;
/* used if text_strip is unset */ /* 16 */ /* used if text_strip is unset */ /* 16 */
tmp <<= 1; tmp <<= 1;
tmp |= ((struct session *)data)->text_strip; /* 15 */ tmp |= ((struct session *)data)->text_strip; /* 15 */
@ -1579,9 +1587,9 @@ hexchat_list_int (hexchat_plugin *ph, hexchat_list *xlist, const char *name)
tmp <<= 1; tmp <<= 1;
tmp |= ((struct session *)data)->text_logging; /* 11 */ tmp |= ((struct session *)data)->text_logging; /* 11 */
tmp <<= 1; tmp <<= 1;
tmp |= ((struct session *)data)->alert_taskbar; /* 10 */ /* unused for historical reasons */ /* 10 */
tmp <<= 1; tmp <<= 1;
tmp |= ((struct session *)data)->alert_tray; /* 9 */ /* used if alert_beep is unset */ /* 9 */
tmp <<= 1; tmp <<= 1;
tmp |= ((struct session *)data)->alert_beep; /* 8 */ tmp |= ((struct session *)data)->alert_beep; /* 8 */
tmp <<= 1; tmp <<= 1;