Changeset 2709f4c for skype/skype.c


Ignore:
Timestamp:
2009-01-07T01:31:38Z (15 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
607f5e3
Parents:
c35bf7a
Message:

introduce skype_parse_password()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    rc35bf7a r2709f4c  
    780780}
    781781
     782static void skype_parse_password(struct im_connection *ic, char *line)
     783{
     784        if (!strncmp(line+9, "OK", 2))
     785                imcb_connected(ic);
     786        else {
     787                imcb_error(ic, "Authentication Failed");
     788                imc_logout(ic, TRUE);
     789        }
     790}
     791
    782792static gboolean skype_read_callback(gpointer data, gint fd,
    783793                                    b_input_condition cond)
     
    816826                                skype_parse_chat(ic, line);
    817827                        else if (!strncmp(line, "PASSWORD ", 9)) {
    818                                 if (!strncmp(line+9, "OK", 2))
    819                                         imcb_connected(ic);
    820                                 else {
    821                                         imcb_error(ic, "Authentication Failed");
    822                                         imc_logout(ic, TRUE);
    823                                 }
     828                                skype_parse_password(ic, line);
    824829                        } else if (!strncmp(line, "PROFILE PSTN_BALANCE ", 21))
    825830                                imcb_log(ic, "SkypeOut balance value is '%s'.", line+21);
Note: See TracChangeset for help on using the changeset viewer.