Changeset 03f3828 for irc_im.c


Ignore:
Timestamp:
2010-07-24T14:06:22Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7989d40d
Parents:
c8791f2
Message:

Adding protocol-specific chatroom settings. First one to use this: AIM
chatrooms to use exchange numbers other than 4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    rc8791f2 r03f3828  
    693693               
    694694                ic->flags |= IRC_CHANNEL_CHAT_PICKME;
    695                 acc->prpl->chat_join( acc->ic, room, nick, NULL );
     695                acc->prpl->chat_join( acc->ic, room, nick, NULL, &ic->set );
    696696                ic->flags &= ~IRC_CHANNEL_CHAT_PICKME;
    697697               
     
    788788{
    789789        struct irc_channel *ic = set->data;
    790         account_t *acc;
     790        account_t *acc, *oa;
    791791       
    792792        if( !( acc = account_get( ic->irc->b, value ) ) )
     
    797797                return SET_INVALID;
    798798        }
     799       
     800        if( set->value && ( oa = account_get( ic->irc->b, set->value ) ) &&
     801            oa->prpl->chat_free_settings )
     802                oa->prpl->chat_free_settings( oa, &ic->set );
     803       
     804        if( acc->prpl->chat_add_settings )
     805                acc->prpl->chat_add_settings( acc, &ic->set );
    799806       
    800807        return g_strdup_printf( "%s(%s)", acc->prpl->name, acc->user );
Note: See TracChangeset for help on using the changeset viewer.