Changeset 858ea01 for otr.c


Ignore:
Timestamp:
2010-09-30T05:50:43Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6ce2240
Parents:
2dcaf9a
Message:

Allow building OTR support as a plugin. Fairly simple, let's hope I can get
away with doing this without libtool (eep).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    r2dcaf9a r858ea01  
    3939
    4040#include "bitlbee.h"
    41 #ifdef WITH_OTR
    4241#include "irc.h"
    4342#include "otr.h"
     
    182181/*** routines declared in otr.h: ***/
    183182
    184 void otr_init(void)
     183#ifdef OTR_BI
     184#define init_plugin otr_init
     185#endif
     186
     187void init_plugin(void)
    185188{
    186189        OTRL_INIT;
     
    17161719        }
    17171720}
    1718 
    1719 
    1720 #else /* WITH_OTR undefined */
    1721 
    1722 void cmd_otr(irc_t *irc, char **args)
    1723 {
    1724         irc_usermsg(irc, "otr: n/a, compiled without OTR support");
    1725 }
    1726 
    1727 #endif
Note: See TracChangeset for help on using the changeset viewer.