comparison mcabber/mcabber/xmpp.c @ 1818:4694fad35ed8

Fix not displaying of MUC nick, set in bookmark
author Myhailo Danylenko <isbear@ukrpost.net>
date Tue, 23 Mar 2010 16:47:18 +0200
parents e6d355e50d7a
children e45d13074721
comparison
equal deleted inserted replaced
1817:fb6d20a17584 1818:4694fad35ed8
2040 if (!fjid) 2040 if (!fjid)
2041 continue; 2041 continue;
2042 bm_elt = g_new0(struct bookmark, 1); 2042 bm_elt = g_new0(struct bookmark, 1);
2043 bm_elt->roomjid = g_strdup(fjid); 2043 bm_elt->roomjid = g_strdup(fjid);
2044 autojoin = lm_message_node_get_attribute(x, "autojoin"); 2044 autojoin = lm_message_node_get_attribute(x, "autojoin");
2045 nick = lm_message_node_get_attribute(x, "nick"); 2045 nick = lm_message_node_get_child_value(x, "nick");
2046 name = lm_message_node_get_attribute(x, "name"); 2046 name = lm_message_node_get_attribute(x, "name");
2047 if (autojoin && !strcmp(autojoin, "1")) 2047 if (autojoin && !strcmp(autojoin, "1"))
2048 bm_elt->autojoin = 1; 2048 bm_elt->autojoin = 1;
2049 if (nick) 2049 if (nick)
2050 bm_elt->nick = g_strdup(nick); 2050 bm_elt->nick = g_strdup(nick);