2 # Various small fixes from CVS that are considered safe to apply to 2.8.6.
4 --- xchat-2.8.6/src/common/cfgfiles.c 2008-02-05 21:02:47.000000000 +1100
5 +++ xchat-2.8.6p1/src/common/cfgfiles.c 2008-06-15 13:45:43.000000000 +1000
7 set_showval (session *sess, const struct prefs *var, char *tbuf)
10 - static const char *offon[] = { "OFF", "ON" };
12 len = strlen (var->name);
13 memcpy (tbuf, var->name, len);
15 *((int *) &prefs + var->offset));
18 - sprintf (tbuf + len, "\0033:\017 %s\n", offon[
19 - *((int *) &prefs + var->offset)]);
20 + if (*((int *) &prefs + var->offset))
21 + sprintf (tbuf + len, "\0033:\017 %s\n", "ON");
23 + sprintf (tbuf + len, "\0033:\017 %s\n", "OFF");
26 PrintText (sess, tbuf);
27 --- xchat-2.8.6/src/common/chanopt.c 2008-06-10 22:00:55.000000000 +1000
28 +++ xchat-2.8.6p1/src/common/chanopt.c 2008-06-15 13:48:04.000000000 +1000
31 #define S_F(xx) STRUCT_OFFSET_STR(struct session,xx)
33 -channel_options chanopt[] =
34 +static const channel_options chanopt[] =
36 {"alert_beep", "BEEP", S_F(alert_beep)},
37 {"alert_taskbar", NULL, S_F(alert_taskbar)},
38 --- xchat-2.8.6/src/common/servlist.c 2008-04-01 19:22:34.000000000 +1100
39 +++ xchat-2.8.6p1/src/common/servlist.c 2008-06-15 13:57:41.000000000 +1000
41 list = g_slist_nth (net->servlist, net->selected);
48 /* incase a protocol switch is added to the servlist gui */
49 --- xchat-2.8.6/src/common/text.c 2008-03-28 13:20:04.000000000 +1100
50 +++ xchat-2.8.6p1/src/common/text.c 2008-06-15 13:59:59.000000000 +1000
53 scrollback_save (session *sess, char *text)
61 scrollback_load (session *sess)