# HG changeset patch # User Mikael Berthe # Date 1132953440 -3600 # Node ID b407d19c39ab76159ea15e7f8255516155523bde # Parent 3569d38f7bbb997d9366e5b7213c49dfad12177e Set status correctly when joining a room diff -r 3569d38f7bbb -r b407d19c39ab mcabber/src/jabglue.c --- a/mcabber/src/jabglue.c Fri Nov 25 22:09:30 2005 +0100 +++ b/mcabber/src/jabglue.c Fri Nov 25 22:17:20 2005 +0100 @@ -577,9 +577,7 @@ } // Send the XML request - x = jutil_presnew(JPACKET__UNKNOWN, 0, 0); - xmlnode_put_attrib(x, "from", jid_full(jc->user)); - xmlnode_put_attrib(x, "to", roomid); + x = presnew(mystatus, roomid, mystatusmsg); y = xmlnode_insert_tag(x, "x"); xmlnode_put_attrib(y, "xmlns", "http://jabber.org/protocol/muc");