Changeset 30093fa for otr.c


Ignore:
Timestamp:
2016-11-12T02:30:32Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
727a68b
Parents:
fecdd71
Message:

otr: word_wrap long system messages ("unencrypted message received")

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    rfecdd71 r30093fa  
    14001400void display_otr_message(void *opdata, ConnContext *ctx, const char *fmt, ...)
    14011401{
     1402        char *msg_, *msg;
    14021403        struct im_connection *ic =
    14031404                check_imc(opdata, ctx->accountname, ctx->protocol);
     
    14071408
    14081409        va_start(va, fmt);
    1409         char *msg = g_strdup_vprintf(fmt, va);
     1410        msg_ = g_strdup_vprintf(fmt, va);
    14101411        va_end(va);
     1412
     1413        msg = word_wrap(msg_, IRC_WORD_WRAP);
    14111414
    14121415        if (u) {
     
    14171420        }
    14181421
     1422        g_free(msg_);
    14191423        g_free(msg);
    14201424}
Note: See TracChangeset for help on using the changeset viewer.