aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-09-29 22:50:43 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2010-09-29 22:50:43 -0700
commit858ea0166108e9cfab3cc9290fc976f041411cce (patch)
tree4e47f7090478b29af0d88241745ba1d97da60ae6 /unix.c
parent2dcaf9a0fabdb92a191e64759d116f316de7dfc2 (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 'unix.c')
-rw-r--r--unix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix.c b/unix.c
index 11997732..4869e9f9 100644
--- a/unix.c
+++ b/unix.c
@@ -76,7 +76,11 @@ int main( int argc, char *argv[] )
memory management functions for libgcrypt while our gnutls module
uses the defaults. Therefore we initialize OTR after SSL. *sigh* */
ssl_init();
+#ifdef OTR_BI
otr_init();
+#endif
+ /* And in case OTR is loaded as a plugin, it'll also get loaded after
+ this point. */
srand( time( NULL ) ^ getpid() );