Changes in otr.c [9f03c47:47ab9a9]
Legend:
- Unmodified
- Added
- Removed
-
otr.c
r9f03c47 r47ab9a9 268 268 } 269 269 270 #ifndef OTR_BI271 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 NULL280 };281 282 return &info;283 }284 #endif285 286 270 gboolean otr_irc_new(irc_t *irc) 287 271 { … … 429 413 430 414 /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */ 431 if (a->prpl->options & PRPL_OPT_NOOTR) {415 if (a->prpl->options & OPT_NOOTR) { 432 416 return 0; 433 417 } … … 457 441 458 442 /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */ 459 if (ic->acc->prpl->options & PRPL_OPT_NOOTR ||443 if (ic->acc->prpl->options & OPT_NOOTR || 460 444 iu->bu->flags & BEE_USER_NOOTR) { 461 445 return msg; … … 1400 1384 void display_otr_message(void *opdata, ConnContext *ctx, const char *fmt, ...) 1401 1385 { 1402 char *msg_, *msg;1403 1386 struct im_connection *ic = 1404 1387 check_imc(opdata, ctx->accountname, ctx->protocol); … … 1408 1391 1409 1392 va_start(va, fmt); 1410 msg_= g_strdup_vprintf(fmt, va);1393 char *msg = g_strdup_vprintf(fmt, va); 1411 1394 va_end(va); 1412 1413 msg = word_wrap(msg_, IRC_WORD_WRAP);1414 1395 1415 1396 if (u) { … … 1420 1401 } 1421 1402 1422 g_free(msg_);1423 1403 g_free(msg); 1424 1404 }
Note: See TracChangeset
for help on using the changeset viewer.