- Timestamp:
- 2016-11-20T08:40:36Z (8 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
rba52ac5 r537d9b9 268 268 } 269 269 270 #ifndef OTR_BI 271 struct 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 270 286 gboolean otr_irc_new(irc_t *irc) 271 287 { … … 413 429 414 430 /* 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) { 416 432 return 0; 417 433 } … … 441 457 442 458 /* 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 || 444 460 iu->bu->flags & BEE_USER_NOOTR) { 445 461 return msg; … … 1384 1400 void display_otr_message(void *opdata, ConnContext *ctx, const char *fmt, ...) 1385 1401 { 1402 char *msg_, *msg; 1386 1403 struct im_connection *ic = 1387 1404 check_imc(opdata, ctx->accountname, ctx->protocol); … … 1391 1408 1392 1409 va_start(va, fmt); 1393 char *msg= g_strdup_vprintf(fmt, va);1410 msg_ = g_strdup_vprintf(fmt, va); 1394 1411 va_end(va); 1412 1413 msg = word_wrap(msg_, IRC_WORD_WRAP); 1395 1414 1396 1415 if (u) { … … 1401 1420 } 1402 1421 1422 g_free(msg_); 1403 1423 g_free(msg); 1404 1424 }
Note: See TracChangeset
for help on using the changeset viewer.