# HG changeset patch # User Mikael Berthe # Date 1256383486 -7200 # Node ID e3afe1da8a5f5a6bd557a5d6e4f44a517bc823f3 # Parent d29376ef424d0b97f645dd641f9c8bc02fcf1bdc Fix saving autowhois option in bookmarks diff -r d29376ef424d -r e3afe1da8a5f mcabber/src/xmpp.c --- a/mcabber/src/xmpp.c Thu Oct 22 20:13:38 2009 +0200 +++ b/mcabber/src/xmpp.c Sat Oct 24 13:24:46 2009 +0200 @@ -2030,8 +2030,9 @@ if (pstatus) lm_message_node_add_child(x, "print_status", strprintstatus[pstatus]); if (awhois) - lm_message_node_add_child(x, "autowhois", - (awhois == autowhois_on) ? "1" : "0"); + lm_message_node_set_attributes(x, "autowhois", + (awhois == autowhois_on) ? "1" : "0", + NULL); changed = TRUE; scr_LogPrint(LPRINT_LOGNORM, "Updating bookmarks..."); }