Changeset 1dd3470 for protocols


Ignore:
Timestamp:
2010-06-03T21:47:53Z (14 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
3759849
Parents:
bb09b3c
Message:

add an option to disable otr on twitter (and other unsuitable protocols)

Location:
protocols
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.h

    rbb09b3c r1dd3470  
    5959#define OPT_TYPING      0x00000100 /* Some pieces of code make assumptions */
    6060#define OPT_THINKING    0x00000200 /* about these values... Stupid me! */
     61#define OPT_NOOTR       0x00001000 /* protocol not suitable for OTR */
    6162
    6263/* ok. now the fun begins. first we create a connection structure */
     
    132133         * - The user sees this name ie. when imcb_log() is used. */
    133134        const char *name;
    134     /* Maximum Message Size of this protocol.
    135     * - Introduced for OTR, in order to fragment large protocol messages.
    136     * - 0 means "unlimited". */
    137     unsigned int mms;
     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;
    138139
    139140        /* Added this one to be able to add per-account settings, don't think
  • protocols/twitter/twitter.c

    rbb09b3c r1dd3470  
    336336        struct prpl *ret = g_new0(struct prpl, 1);
    337337       
     338        ret->options = OPT_NOOTR;
    338339        ret->name = "twitter";
    339340        ret->login = twitter_login;
Note: See TracChangeset for help on using the changeset viewer.