diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-09-29 22:50:43 -0700 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-09-29 22:50:43 -0700 |
commit | 858ea0166108e9cfab3cc9290fc976f041411cce (patch) | |
tree | 4e47f7090478b29af0d88241745ba1d97da60ae6 /otr.c | |
parent | 2dcaf9a0fabdb92a191e64759d116f316de7dfc2 (diff) |
Allow building OTR support as a plugin. Fairly simple, let's hope I can get
away with doing this without libtool (eep).
Diffstat (limited to 'otr.c')
-rw-r--r-- | otr.c | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -38,7 +38,6 @@ */ #include "bitlbee.h" -#ifdef WITH_OTR #include "irc.h" #include "otr.h" #include <sys/types.h> @@ -181,7 +180,11 @@ static const struct irc_plugin otr_plugin; /*** routines declared in otr.h: ***/ -void otr_init(void) +#ifdef OTR_BI +#define init_plugin otr_init +#endif + +void init_plugin(void) { OTRL_INIT; @@ -1715,13 +1718,3 @@ void yes_keygen(void *data) otr_keygen(irc, acc->user, acc->prpl->name); } } - - -#else /* WITH_OTR undefined */ - -void cmd_otr(irc_t *irc, char **args) -{ - irc_usermsg(irc, "otr: n/a, compiled without OTR support"); -} - -#endif |