Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/xmpp.c @ 2004:aa7e03c35488
Accept "true" as well as "1" for autojoin in bookmarked rooms
author | Hermitifier |
---|---|
date | Thu, 26 Jan 2012 10:11:03 +0100 |
parents | 51f032d5ca22 |
children | a73ce708c2c9 |
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp.c Fri Oct 21 08:50:32 2011 +0200 +++ b/mcabber/mcabber/xmpp.c Thu Jan 26 10:11:03 2012 +0100 @@ -2206,7 +2206,7 @@ autojoin = lm_message_node_get_attribute(x, "autojoin"); nick = lm_message_node_get_child_value(x, "nick"); name = lm_message_node_get_attribute(x, "name"); - if (autojoin && !strcmp(autojoin, "1")) + if (autojoin && (!strcmp(autojoin, "1") || !strcmp(autojoin, "true"))) bm_elt->autojoin = 1; if (nick) bm_elt->nick = g_strdup(nick);