Changeset bc7a0d4


Ignore:
Timestamp:
2014-12-06T17:58:35Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
1065dd4, 6f10697
Parents:
7233f68
Message:

msn: configurable notification server host/port

Location:
protocols/msn
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r7233f68 rbc7a0d4  
    4141        s->flags |= SET_NOSAVE | ACC_SET_ONLINE_ONLY;
    4242       
     43        s = set_add( &acc->set, "server", MSN_NS_HOST, set_eval_account, acc );
     44        s->flags |= SET_NOSAVE | ACC_SET_OFFLINE_ONLY;
     45
     46        s = set_add( &acc->set, "port", MSN_NS_PORT, set_eval_int, acc );
     47        s->flags |= ACC_SET_OFFLINE_ONLY;
     48
    4349        set_add( &acc->set, "mail_notifications", "false", set_eval_bool, acc );
    4450        set_add( &acc->set, "switchboard_keepalives", "false", set_eval_bool, acc );
     
    7177       
    7278        imcb_log( ic, "Connecting" );
    73         msn_ns_connect( ic, md->ns, MSN_NS_HOST, MSN_NS_PORT );
     79        msn_ns_connect( ic, md->ns,
     80                        set_getstr( &ic->acc->set, "server" ),
     81                        set_getint( &ic->acc->set, "port" ) );
    7482}
    7583
  • protocols/msn/msn.h

    r7233f68 rbc7a0d4  
    4646
    4747#define MSN_NS_HOST "messenger.hotmail.com"
    48 #define MSN_NS_PORT 1863
     48#define MSN_NS_PORT "1863"
    4949
    5050/* Some other version.
Note: See TracChangeset for help on using the changeset viewer.