comparison mcabber/mcabber/xmpp_iqrequest.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 10cec229b41a
children 87049d55e34f
comparison
equal deleted inserted replaced
2003:10cec229b41a 2004:aa7e03c35488
625 } 625 }
626 626
627 // Is autojoin set? 627 // Is autojoin set?
628 // If it is, we'll look up for more information (nick? password?) and 628 // If it is, we'll look up for more information (nick? password?) and
629 // try to join the room. 629 // try to join the room.
630 if (autojoin && !strcmp(autojoin, "1")) { 630 if (autojoin && (!strcmp(autojoin, "1") || !strcmp(autojoin, "true"))) {
631 const char *nick, *passwd; 631 const char *nick, *passwd;
632 char *tmpnick = NULL; 632 char *tmpnick = NULL;
633 nick = lm_message_node_get_child_value(node, "nick"); 633 nick = lm_message_node_get_child_value(node, "nick");
634 passwd = lm_message_node_get_child_value(node, "password"); 634 passwd = lm_message_node_get_child_value(node, "password");
635 if (!nick || !*nick) 635 if (!nick || !*nick)