Changeset 5a71d9c for protocols


Ignore:
Timestamp:
2008-02-09T17:58:13Z (17 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
f55cfe9
Parents:
a13855a
Message:
  • add support for setting ops/voice according to OTR msgstate
  • add 'otr trust' user command
  • support non-otr messages during keygen
  • run otr messages through strip_html
  • interpret <b> and <i> tags in html messages
  • record max message size in prpl
  • add 'encrypted' flag to user_t
  • cosmetics
Location:
protocols
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    ra13855a r5a71d9c  
    511511       
    512512        ret->name = "jabber";
     513    ret->mms = 0;                        /* no limit */
    513514        ret->login = jabber_login;
    514515        ret->init = jabber_init;
  • protocols/msn/msn.c

    ra13855a r5a71d9c  
    372372       
    373373        ret->name = "msn";
     374    ret->mms = 1409;         /* this guess taken from libotr UPGRADING file */
    374375        ret->login = msn_login;
    375376        ret->init = msn_init;
  • protocols/nogaim.c

    ra13855a r5a71d9c  
    603603       
    604604        /* LISPy... */
    605         if( ( set_getbool( &ic->irc->set, "away_devoice" ) ) &&         /* Don't do a thing when user doesn't want it */
    606             ( u->online ) &&                                            /* Don't touch offline people */
    607             ( ( ( u->online != oo ) && !u->away ) ||                    /* Voice joining people */
    608               ( ( u->online == oo ) && ( oa == !u->away ) ) ) )         /* (De)voice people changing state */
     605        if( ( u->online ) &&                                            /* Don't touch offline people */
     606            ( ( ( u->online != oo ) && !u->away ) ||                    /* Do joining people */
     607              ( ( u->online == oo ) && ( oa == !u->away ) ) ) )         /* Do people changing state */
    609608        {
    610609                char *from;
     
    619618                                                            ic->irc->myhost );
    620619                }
    621                 irc_write( ic->irc, ":%s MODE %s %cv %s", from, ic->irc->channel,
    622                                                           u->away?'-':'+', u->nick );
     620                if(!strcmp(set_getstr(&ic->irc->set, "voice_buddies"), "notaway")) {
     621                        irc_write( ic->irc, ":%s MODE %s %cv %s", from, ic->irc->channel,
     622                                                                 u->away?'-':'+', u->nick );
     623                }
     624                if(!strcmp(set_getstr(&ic->irc->set, "op_buddies"), "notaway")) {
     625                        irc_write( ic->irc, ":%s MODE %s %co %s", from, ic->irc->channel,
     626                                                                 u->away?'-':'+', u->nick );
     627                }
    623628                g_free( from );
    624629        }
  • protocols/nogaim.h

    ra13855a r5a71d9c  
    136136         * - The user sees this name ie. when imcb_log() is used. */
    137137        const char *name;
     138    /* Maximum Message Size of this protocol.
     139     * - Introduced for OTR, in order to fragment large protocol messages.
     140     * - 0 means "unlimited". */
     141    unsigned int mms;
    138142
    139143        /* Added this one to be able to add per-account settings, don't think
  • protocols/oscar/oscar.c

    ra13855a r5a71d9c  
    26032603        struct prpl *ret = g_new0(struct prpl, 1);
    26042604        ret->name = "oscar";
     2605    ret->mms = 2343;       /* this guess taken from libotr UPGRADING file */
    26052606        ret->away_states = oscar_away_states;
    26062607        ret->init = oscar_init;
  • protocols/yahoo/yahoo.c

    ra13855a r5a71d9c  
    354354        struct prpl *ret = g_new0(struct prpl, 1);
    355355        ret->name = "yahoo";
     356    ret->mms = 832;           /* this guess taken from libotr UPGRADING file */
    356357        ret->init = byahoo_init;
    357358       
Note: See TracChangeset for help on using the changeset viewer.