Changeset 998b103 for protocols


Ignore:
Timestamp:
2007-06-13T23:31:39Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
bdda9e9
Parents:
43d8cc5
Message:

Added imcb_remove_buddy() so deletions in Jabber roster pushes actually
work. This also solves the issue of underscores appearing and disappearing
in their nicknames when people leave/join a chat.

Location:
protocols
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    r43d8cc5 r998b103  
    167167                if( s ) *s = '/';
    168168        }
    169         else if( type ) /* This only gets called if type is NULL or "unavailable" */
     169        else if( type ) /* type can only be NULL or "unavailable" in this function */
    170170        {
    171171                s = strchr( bud->ext_jid, '/' );
    172172                if( s ) *s = 0;
    173173                imcb_chat_remove_buddy( chat, bud->ext_jid, NULL );
     174                if( bud != jc->me && bud->flags & JBFLAG_IS_ANONYMOUS )
     175                        imcb_remove_buddy( ic, bud->ext_jid, NULL );
    174176                if( s ) *s = '/';
    175177               
  • protocols/jabber/iq.c

    r43d8cc5 r998b103  
    378378                        else if( strcmp( sub, "remove" ) == 0 )
    379379                        {
    380                                 /* Don't have any API call for this yet! So let's
    381                                    just try to handle this as well as we can. */
    382380                                jabber_buddy_remove_bare( ic, jid );
    383                                 imcb_buddy_status( ic, jid, 0, NULL, NULL );
    384                                 /* FIXME! */
     381                                imcb_remove_buddy( ic, jid, NULL );
    385382                        }
    386383                }
  • protocols/jabber/jabber.c

    r43d8cc5 r998b103  
    334334        {
    335335                jd->flags &= ~JFLAG_XMLCONSOLE;
    336                 /* FIXME imcb_remove_buddy( ic, JABBER_XMLCONSOLE_HANDLE, NULL ); */
     336                imcb_remove_buddy( ic, JABBER_XMLCONSOLE_HANDLE, NULL );
    337337                return;
    338338        }
  • protocols/nogaim.c

    r43d8cc5 r998b103  
    440440                        imcb_log( ic, "User `%s' changed name to `%s'", u->nick, u->realname );
    441441        }
     442}
     443
     444void imcb_remove_buddy( struct im_connection *ic, char *handle, char *group )
     445{
     446        user_t *u;
     447       
     448        if( ( u = user_findhandle( ic, handle ) ) )
     449                user_del( ic->irc, u->nick );
    442450}
    443451
Note: See TracChangeset for help on using the changeset viewer.