Mercurial > hg
changeset 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 | 10cec229b41a |
children | e0aedfa091ec 6c02ccb14c1c |
files | mcabber/mcabber/xmpp.c mcabber/mcabber/xmpp_iqrequest.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
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);
--- a/mcabber/mcabber/xmpp_iqrequest.c Fri Oct 21 08:50:32 2011 +0200 +++ b/mcabber/mcabber/xmpp_iqrequest.c Thu Jan 26 10:11:03 2012 +0100 @@ -627,7 +627,7 @@ // Is autojoin set? // If it is, we'll look up for more information (nick? password?) and // try to join the room. - if (autojoin && !strcmp(autojoin, "1")) { + if (autojoin && (!strcmp(autojoin, "1") || !strcmp(autojoin, "true"))) { const char *nick, *passwd; char *tmpnick = NULL; nick = lm_message_node_get_child_value(node, "nick");