Changeset 537d9b9 for otr.c


Ignore:
Timestamp:
2016-11-20T08:40:36Z (8 years ago)
Author:
dequis <dx@…>
Children:
3f44e43
Parents:
ba52ac5 (diff), 9f03c47 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge master up to commit '9f03c47' into parson

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    rba52ac5 r537d9b9  
    268268}
    269269
     270#ifndef OTR_BI
     271struct plugin_info *init_plugin_info(void)
     272{
     273        static struct plugin_info info = {
     274                BITLBEE_ABI_VERSION_CODE,
     275                "otr",
     276                BITLBEE_VERSION,
     277                "Off-the-Record communication",
     278                NULL,
     279                NULL
     280        };
     281
     282        return &info;
     283}
     284#endif
     285
    270286gboolean otr_irc_new(irc_t *irc)
    271287{
     
    413429
    414430        /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
    415         if (a->prpl->options & OPT_NOOTR) {
     431        if (a->prpl->options & PRPL_OPT_NOOTR) {
    416432                return 0;
    417433        }
     
    441457
    442458        /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
    443         if (ic->acc->prpl->options & OPT_NOOTR ||
     459        if (ic->acc->prpl->options & PRPL_OPT_NOOTR ||
    444460            iu->bu->flags & BEE_USER_NOOTR) {
    445461                return msg;
     
    13841400void display_otr_message(void *opdata, ConnContext *ctx, const char *fmt, ...)
    13851401{
     1402        char *msg_, *msg;
    13861403        struct im_connection *ic =
    13871404                check_imc(opdata, ctx->accountname, ctx->protocol);
     
    13911408
    13921409        va_start(va, fmt);
    1393         char *msg = g_strdup_vprintf(fmt, va);
     1410        msg_ = g_strdup_vprintf(fmt, va);
    13941411        va_end(va);
     1412
     1413        msg = word_wrap(msg_, IRC_WORD_WRAP);
    13951414
    13961415        if (u) {
     
    14011420        }
    14021421
     1422        g_free(msg_);
    14031423        g_free(msg);
    14041424}
Note: See TracChangeset for help on using the changeset viewer.