Changeset 9c9b37c


Ignore:
Timestamp:
2007-07-01T19:58:23Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c377417
Parents:
b9f8b87
Message:

Keeping an original (not normalized) copy of the user's nickname. This
fixes a bug reported by James Teh in the monster ticket #20. There's no
proper garbage collection yet in the Jabber conference code, really have
to do that soon. :-(

Location:
protocols/jabber
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    rb9f8b87 r9c9b37c  
    5454                return NULL;
    5555        }
    56         g_free( roomjid );
     56       
     57        /* roomjid isn't normalized yet, and we need an original version
     58           of the nick to send a proper presence update. */
     59        jc->my_full_jid = roomjid;
    5760       
    5861        c = imcb_chat_new( ic, room );
     
    8992        node = xt_new_node( "x", NULL, NULL );
    9093        xt_add_attr( node, "xmlns", XMLNS_MUC );
    91         node = jabber_make_packet( "presence", "unavailable", jc->me->full_jid, node );
     94        node = jabber_make_packet( "presence", "unavailable", jc->my_full_jid, node );
    9295       
    9396        if( !jabber_write_packet( ic, node ) )
  • protocols/jabber/jabber.h

    rb9f8b87 r9c9b37c  
    119119        int flags;
    120120        char *name;
     121        char *my_full_jid; /* Separate copy because of case sensitivity. */
    121122        struct jabber_buddy *me;
    122123};
  • protocols/jabber/presence.c

    rb9f8b87 r9c9b37c  
    195195                struct jabber_chat *jc = c->data;
    196196               
    197                 xt_add_attr( node, "to", jc->me->full_jid );
     197                xt_add_attr( node, "to", jc->my_full_jid );
    198198                st = jabber_write_packet( ic, node );
    199199        }
Note: See TracChangeset for help on using the changeset viewer.