Changeset f5aedd91


Ignore:
Timestamp:
2008-01-10T16:10:10Z (11 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
6abf3ec
Parents:
4bbd9db
Message:

added default server "localhost"

Location:
skype
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skype/README

    r4bbd9db rf5aedd91  
    119119----
    120120account add skype <user> <pass>
    121 account set 0/server localhost
    122121----
    123122
  • skype/skype.c

    r4bbd9db rf5aedd91  
    3030#include <glib.h>
    3131
     32#define SKYPE_DEFAULT_SERVER "localhost"
    3233#define SKYPE_DEFAULT_PORT "2727"
    3334
     
    139140        s->flags |= ACC_SET_OFFLINE_ONLY;
    140141
    141         s = set_add( &acc->set, "server", NULL, set_eval_account, acc );
    142         s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY;
     142        s = set_add( &acc->set, "server", SKYPE_DEFAULT_SERVER, set_eval_account, acc );
     143        s->flags |= ACC_SET_OFFLINE_ONLY;
    143144}
    144145
     
    775776
    776777        imcb_log( ic, "Connecting" );
    777         sd->fd = proxy_connect(acc->server, set_getint( &acc->set, "port" ), skype_connected, ic );
     778        sd->fd = proxy_connect(set_getstr( &acc->set, "server" ), set_getint( &acc->set, "port" ), skype_connected, ic );
    778779        sd->username = g_strdup( acc->user );
    779780
Note: See TracChangeset for help on using the changeset viewer.