diff options
author | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-03 22:30:03 +0100 |
---|---|---|
committer | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-03 22:30:03 +0100 |
commit | 764c7d1009feda7db971ea7ac6bcb2a4acef0efc (patch) | |
tree | f156da4743548d36d0c8ab62633f133c5217fbd5 /irc.c | |
parent | b5c8a34aeff244ffe7a9f4bd5edf827495d0deea (diff) |
OTR support, first checkin
Diffstat (limited to 'irc.c')
-rw-r--r-- | irc.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -125,6 +125,9 @@ irc_t *irc_new( int fd ) set_add( &irc->set, "typing_notice", "false", set_eval_bool, irc ); conf_loaddefaults( irc ); + + irc->otr_us = otrl_userstate_create(); + irc->otr_mutex = g_mutex_new(); return( irc ); } @@ -275,6 +278,10 @@ void irc_free(irc_t * irc) g_free(helpnodetmp); } } + + otrl_userstate_free(irc->otr_us); + g_mutex_free(irc->otr_mutex); + g_free(irc); if( global.conf->runmode == RUNMODE_INETD || global.conf->runmode == RUNMODE_FORKDAEMON ) |