Changeset 9580a6f


Ignore:
Timestamp:
2009-01-07T02:02:20Z (15 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
6b9d22a
Parents:
ff436ba
Message:

whitespace, fixes checkpatch errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    rff436ba r9580a6f  
    616616                        if (sd->call_status) {
    617617                                switch (sd->call_status) {
    618                                         case SKYPE_CALL_RINGING:
    619                                                 if (sd->call_out)
    620                                                         imcb_log(ic, "You are currently ringing the user %s.", info);
    621                                                 else {
    622                                                         g_snprintf(buf, 1024, "The user %s is currently ringing you.", info);
    623                                                         skype_call_ask(ic, sd->call_id, buf);
    624                                                 }
    625                                                 break;
    626                                         case SKYPE_CALL_MISSED:
    627                                                 imcb_log(ic, "You have missed a call from user %s.", info);
    628                                                 break;
    629                                         case SKYPE_CALL_CANCELLED:
    630                                                 imcb_log(ic, "You cancelled the call to the user %s.", info);
    631                                                 sd->call_status = 0;
    632                                                 sd->call_out = FALSE;
    633                                                 break;
    634                                         case SKYPE_CALL_REFUSED:
    635                                                 if (sd->call_out)
    636                                                         imcb_log(ic, "The user %s refused the call.", info);
    637                                                 else
    638                                                         imcb_log(ic, "You refused the call from user %s.", info);
    639                                                 sd->call_out = FALSE;
    640                                                 break;
    641                                         case SKYPE_CALL_FINISHED:
    642                                                 if (sd->call_duration)
    643                                                         imcb_log(ic, "You finished the call to the user %s (duration: %s seconds).", info, sd->call_duration);
    644                                                 else
    645                                                         imcb_log(ic, "You finished the call to the user %s.", info);
    646                                                 sd->call_out = FALSE;
    647                                                 break;
    648                                         default:
    649                                                 /* Don't be noisy, ignore other statuses for now. */
    650                                                 break;
     618                                case SKYPE_CALL_RINGING:
     619                                        if (sd->call_out)
     620                                                imcb_log(ic, "You are currently ringing the user %s.", info);
     621                                        else {
     622                                                g_snprintf(buf, 1024, "The user %s is currently ringing you.", info);
     623                                                skype_call_ask(ic, sd->call_id, buf);
     624                                        }
     625                                        break;
     626                                case SKYPE_CALL_MISSED:
     627                                        imcb_log(ic, "You have missed a call from user %s.", info);
     628                                        break;
     629                                case SKYPE_CALL_CANCELLED:
     630                                        imcb_log(ic, "You cancelled the call to the user %s.", info);
     631                                        sd->call_status = 0;
     632                                        sd->call_out = FALSE;
     633                                        break;
     634                                case SKYPE_CALL_REFUSED:
     635                                        if (sd->call_out)
     636                                                imcb_log(ic, "The user %s refused the call.", info);
     637                                        else
     638                                                imcb_log(ic, "You refused the call from user %s.", info);
     639                                        sd->call_out = FALSE;
     640                                        break;
     641                                case SKYPE_CALL_FINISHED:
     642                                        if (sd->call_duration)
     643                                                imcb_log(ic, "You finished the call to the user %s (duration: %s seconds).", info, sd->call_duration);
     644                                        else
     645                                                imcb_log(ic, "You finished the call to the user %s.", info);
     646                                        sd->call_out = FALSE;
     647                                        break;
     648                                default:
     649                                        /* Don't be noisy, ignore other statuses for now. */
     650                                        break;
    651651                                }
    652652                                sd->call_status = 0;
     
    681681                        if (sd->filetransfer_status) {
    682682                                switch (sd->filetransfer_status) {
    683                                         case SKYPE_FILETRANSFER_NEW:
    684                                                 imcb_log(ic, "The user %s offered a new file for you.", info);
    685                                                 break;
    686                                         case SKYPE_FILETRANSFER_FAILED:
    687                                                 imcb_log(ic, "Failed to transfer file from user %s.", info);
    688                                                 break;
     683                                case SKYPE_FILETRANSFER_NEW:
     684                                        imcb_log(ic, "The user %s offered a new file for you.", info);
     685                                        break;
     686                                case SKYPE_FILETRANSFER_FAILED:
     687                                        imcb_log(ic, "Failed to transfer file from user %s.", info);
     688                                        break;
    689689                                }
    690690                                sd->filetransfer_status = 0;
Note: See TracChangeset for help on using the changeset viewer.