Ignore:
Timestamp:
2007-07-01T16:29:21Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
9c9b37c
Parents:
2758cfe
Message:

Better handling of private messages via groupchats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    r2758cfe rb9f8b87  
    128128                   Slightly hackish way of finding out eh? ;-) */
    129129               
    130                 /* This is pretty messy... */
     130                /* This is pretty messy... Here it sets ext_jid to the real
     131                   JID of the participant. Works for non-anonymized channels.
     132                   Might break if someone joins a chat twice, though. */
    131133                for( c = node->children; ( c = xt_find_node( c, "x" ) ); c = c->next )
    132134                        if( ( s = xt_find_attr( c, "xmlns" ) ) &&
     
    137139                                {
    138140                                        /* Yay, found what we need. :-) */
    139                                         bud->ext_jid = g_strdup( s );
     141                                        bud->ext_jid = jabber_normalize( s );
    140142                                        break;
    141143                                }
     
    146148                {
    147149                        if( bud == jc->me )
    148                                 bud->ext_jid = g_strdup( ic->acc->user );
     150                                bud->ext_jid = jabber_normalize( ic->acc->user );
    149151                        else
    150152                                /* Don't want the nick to be at the end, so let's
Note: See TracChangeset for help on using the changeset viewer.