Changeset 51a3d12


Ignore:
Timestamp:
2010-07-25T09:11:48Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c6bf805
Parents:
5588edf5
Message:

Allow change nicknames when moving contacts between groups. Also fixing a
bug that caused many empty channel mode changes being sent.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r5588edf5 r51a3d12  
    288288        irc_user_t *iu = (irc_user_t *) bu->ui_data;
    289289        irc_t *irc = (irc_t *) bee->ui_data;
     290        bee_user_flags_t online;
     291       
     292        /* Take the user offline temporarily so we can change the nick (if necessary). */
     293        if( ( online = bu->flags & BEE_USER_ONLINE ) )
     294                bu->flags &= ~BEE_USER_ONLINE;
    290295       
    291296        bee_irc_channel_update( irc, NULL, iu );
    292297        bee_irc_user_nick_update( iu );
     298       
     299        if( online )
     300        {
     301                bu->flags |= online;
     302                bee_irc_channel_update( irc, NULL, iu );
     303        }
    293304       
    294305        return TRUE;
  • irc_send.c

    r5588edf5 r51a3d12  
    396396                            ic->irc->root->user, ic->irc->root->host );
    397397       
    398         irc_write( ic->irc, ":%s MODE %s %s", from, ic->name, changes );
    399 }
     398        if( *changes )
     399                irc_write( ic->irc, ":%s MODE %s %s", from, ic->name, changes );
     400}
Note: See TracChangeset for help on using the changeset viewer.