Changeset 9db0234


Ignore:
Timestamp:
2008-02-29T00:09:22Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
2eb4b1f
Parents:
123e45a
Message:

finetune ringing message
old:
the user foo is ringing you

new:
you are ringing the user foo
or
the user foo is ringing you

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    r123e45a r9db0234  
    4141{
    4242        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
    4447} skype_call_status;
    4548
     
    562565                                                g_snprintf(buf, 1024, "GET CALL %s PARTNER_HANDLE\n", id);
    563566                                                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;
    565571                                        }
    566572                                        else if(!strcmp(info, "STATUS MISSED"))
     
    570576                                                sd->call_status = SKYPE_CALL_MISSED;
    571577                                        }
     578                                        else if(!strcmp(info, "STATUS UNPLACED"))
     579                                                sd->call_status = SKYPE_CALL_UNPLACED;
    572580                                        else if(!strncmp(info, "PARTNER_HANDLE ", 15))
    573581                                        {
     
    581589                                                                case SKYPE_CALL_MISSED:
    582590                                                                        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. */
    583597                                                                        break;
    584598                                                        }
     
    911925        g_free(buf);
    912926        g_free(nick);
    913         imcb_log(ic, "Ringing the user %s.", value);
    914927        return(value);
    915928}
Note: See TracChangeset for help on using the changeset viewer.