Changeset 96863f6 for protocols/oscar


Ignore:
Timestamp:
2006-07-02T09:49:31Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
911f2eb
Parents:
fef6116
Message:

Added protocol-specific settings, made the server setting specific to only
OSCAR and Jabber.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    rfef6116 r96863f6  
    356356}
    357357
     358static void oscar_acc_init(account_t *acc)
     359{
     360        set_t *s;
     361       
     362        s = set_add( &acc->set, "server", NULL, set_eval_account, acc );
     363        s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY;
     364}
     365
    358366static void oscar_login(account_t *acc) {
    359367        aim_session_t *sess;
     
    386394        if (conn == NULL) {
    387395                hide_login_progress(gc, _("Unable to login to AIM"));
     396                signoff(gc);
     397                return;
     398        }
     399       
     400        if (acc->server == NULL) {
     401                hide_login_progress(gc, "No servername specified");
    388402                signoff(gc);
    389403                return;
     
    26492663        ret->away_states = oscar_away_states;
    26502664        ret->login = oscar_login;
     2665        ret->acc_init = oscar_acc_init;
    26512666        ret->close = oscar_close;
    26522667        ret->send_im = oscar_send_im;
Note: See TracChangeset for help on using the changeset viewer.