Changeset 1dd3470
- Timestamp:
- 2010-06-03T21:47:53Z (15 years ago)
- Branches:
- master
- Children:
- 3759849
- Parents:
- bb09b3c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
rbb09b3c r1dd3470 304 304 OtrlPrivKey *k; 305 305 306 /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */ 307 if(a->prpl->options & OPT_NOOTR) { 308 return 0; 309 } 310 306 311 k = otrl_privkey_find(irc->otr->us, a->user, a->prpl->name); 307 312 if(k) { … … 324 329 OtrlTLV *tlvs = NULL; 325 330 char *colormsg; 331 332 /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */ 333 if(ic->acc->prpl->options & OPT_NOOTR) { 334 return (g_strdup(msg)); 335 } 326 336 327 337 ignore_msg = otrl_message_receiving(ic->irc->otr->us, &global.otr_ops, ic, … … 371 381 char *otrmsg = NULL; 372 382 ConnContext *ctx = NULL; 383 384 /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */ 385 if(ic->acc->prpl->options & OPT_NOOTR) { 386 return (ic->acc->prpl->buddy_msg(ic, handle, msg, flags)); 387 } 373 388 374 389 st = otrl_message_sending(ic->irc->otr->us, &global.otr_ops, ic, -
protocols/nogaim.h
rbb09b3c r1dd3470 59 59 #define OPT_TYPING 0x00000100 /* Some pieces of code make assumptions */ 60 60 #define OPT_THINKING 0x00000200 /* about these values... Stupid me! */ 61 #define OPT_NOOTR 0x00001000 /* protocol not suitable for OTR */ 61 62 62 63 /* ok. now the fun begins. first we create a connection structure */ … … 132 133 * - The user sees this name ie. when imcb_log() is used. */ 133 134 const char *name; 134 135 136 137 135 /* Maximum Message Size of this protocol. 136 * - Introduced for OTR, in order to fragment large protocol messages. 137 * - 0 means "unlimited". */ 138 unsigned int mms; 138 139 139 140 /* Added this one to be able to add per-account settings, don't think -
protocols/twitter/twitter.c
rbb09b3c r1dd3470 336 336 struct prpl *ret = g_new0(struct prpl, 1); 337 337 338 ret->options = OPT_NOOTR; 338 339 ret->name = "twitter"; 339 340 ret->login = twitter_login;
Note: See TracChangeset
for help on using the changeset viewer.