comparison mcabber/src/jabglue.c @ 535:b407d19c39ab

Set status correctly when joining a room
author Mikael Berthe <mikael@lilotux.net>
date Fri, 25 Nov 2005 22:17:20 +0100
parents 3569d38f7bbb
children 6547fd48fb5e
comparison
equal deleted inserted replaced
534:3569d38f7bbb 535:b407d19c39ab
575 g_free(roomid); 575 g_free(roomid);
576 return; 576 return;
577 } 577 }
578 578
579 // Send the XML request 579 // Send the XML request
580 x = jutil_presnew(JPACKET__UNKNOWN, 0, 0); 580 x = presnew(mystatus, roomid, mystatusmsg);
581 xmlnode_put_attrib(x, "from", jid_full(jc->user));
582 xmlnode_put_attrib(x, "to", roomid);
583 y = xmlnode_insert_tag(x, "x"); 581 y = xmlnode_insert_tag(x, "x");
584 xmlnode_put_attrib(y, "xmlns", "http://jabber.org/protocol/muc"); 582 xmlnode_put_attrib(y, "xmlns", "http://jabber.org/protocol/muc");
585 583
586 jab_send(jc, x); 584 jab_send(jc, x);
587 xmlnode_free(x); 585 xmlnode_free(x);