Changeset 9db0234
- Timestamp:
- 2008-02-29T00:09:22Z (17 years ago)
- Branches:
- master
- Children:
- 2eb4b1f
- Parents:
- 123e45a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skype.c
r123e45a r9db0234 41 41 { 42 42 SKYPE_CALL_RINGING = 1, 43 SKYPE_CALL_MISSED 43 SKYPE_CALL_MISSED, 44 SKYPE_CALL_UNPLACED, 45 /* This means we are ringing somebody, not somebody rings us. */ 46 SKYPE_CALL_RINGING_OUT 44 47 } skype_call_status; 45 48 … … 562 565 g_snprintf(buf, 1024, "GET CALL %s PARTNER_HANDLE\n", id); 563 566 skype_write( ic, buf, strlen( buf ) ); 564 sd->call_status = SKYPE_CALL_RINGING; 567 if(sd->call_status != SKYPE_CALL_UNPLACED) 568 sd->call_status = SKYPE_CALL_RINGING; 569 else 570 sd->call_status = SKYPE_CALL_RINGING_OUT; 565 571 } 566 572 else if(!strcmp(info, "STATUS MISSED")) … … 570 576 sd->call_status = SKYPE_CALL_MISSED; 571 577 } 578 else if(!strcmp(info, "STATUS UNPLACED")) 579 sd->call_status = SKYPE_CALL_UNPLACED; 572 580 else if(!strncmp(info, "PARTNER_HANDLE ", 15)) 573 581 { … … 581 589 case SKYPE_CALL_MISSED: 582 590 imcb_log(ic, "You have missed a call from user %s.", info); 591 break; 592 case SKYPE_CALL_RINGING_OUT: 593 imcb_log(ic, "You are currently ringing the user %s.", info); 594 break; 595 default: 596 /* Don't be noisy, ignore other statuses for now. */ 583 597 break; 584 598 } … … 911 925 g_free(buf); 912 926 g_free(nick); 913 imcb_log(ic, "Ringing the user %s.", value);914 927 return(value); 915 928 }
Note: See TracChangeset
for help on using the changeset viewer.