1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

Conform to Section 3.2.2.1 of XML Schema Part 2: Datatypes

In accordance with Section 3.2.2.1 of XML Schema Part 2: Datatypes, the
allowable lexical representations for the xs:boolean datatype are the
strings "0" and "false" for the concept 'false' and the strings "1" and
"true" for the concept 'true'; implementations MUST support both styles
of lexical representation.
This commit is contained in:
Paul Fariello 2018-06-25 08:22:58 +03:20
parent 233e076be9
commit 71c9cbf8a8

View File

@ -258,7 +258,7 @@ _confwin_form_field(ProfWin *window, char *tag, FormField *field)
if (value == NULL) {
win_appendln(window, THEME_OFFLINE, "FALSE");
} else {
if (g_strcmp0(value, "0") == 0) {
if (g_strcmp0(value, "0") == 0 || g_strcmp0(value, "false") == 0) {
win_appendln(window, THEME_OFFLINE, "FALSE");
} else {
win_appendln(window, THEME_ONLINE, "TRUE");