Changeset 51f937e for otr.c


Ignore:
Timestamp:
2013-08-03T13:36:53Z (11 years ago)
Author:
unknown <pesco@…>
Branches:
master
Children:
e73e165
Parents:
e4752a6
Message:

log OTR heartbeats if set verbose

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    re4752a6 r51f937e  
    880880                        "malformed OTR message received");
    881881                break;
     882        case OTRL_MSGEVENT_LOG_HEARTBEAT_RCVD:
     883                if(global.conf->verbose) {
     884                        log_otr_message(opdata, "%s/%s: heartbeat received",
     885                                ctx->accountname, ctx->protocol);
     886                }
     887                break;
     888        case OTRL_MSGEVENT_LOG_HEARTBEAT_SENT:
     889                if(global.conf->verbose) {
     890                        log_otr_message(opdata, "%s/%s: heartbeat sent",
     891                                ctx->accountname, ctx->protocol);
     892                }
     893                break;
    882894        case OTRL_MSGEVENT_RCVDMSG_GENERAL_ERR:
    883895                display_otr_message(opdata, ctx,
     
    897909                break;
    898910        default:
    899                 /* ignore  XXX log? */
     911                /* shouldn't happen */
    900912                break;
    901913        }
Note: See TracChangeset for help on using the changeset viewer.