From 2dcaf9a0fabdb92a191e64759d116f316de7dfc2 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 1 Sep 2010 23:35:06 +0100 Subject: Load/save code. It'd be better if the OTR module would just save its info in BitlBee settings that automatically end up in the existing .xml files (or whatever storage is used), but I realise this is non-trivial. --- otr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'otr.c') diff --git a/otr.c b/otr.c index 11abab63..ad59d5b0 100644 --- a/otr.c +++ b/otr.c @@ -447,6 +447,9 @@ static const struct irc_plugin otr_plugin = otr_irc_free, otr_filter_msg_out, otr_filter_msg_in, + otr_load, + otr_save, + otr_remove, }; static void cmd_otr(irc_t *irc, char **args) @@ -1662,6 +1665,7 @@ gboolean keygen_finish_handler(gpointer data, gint fd, b_input_condition cond) /* okay, the slave is idle now, so kill him */ fclose(irc->otr->from); fclose(irc->otr->to); + irc->otr->from = irc->otr->to = NULL; kill(irc->otr->keygen, SIGTERM); waitpid(irc->otr->keygen, NULL, 0); irc->otr->keygen = 0; -- cgit v1.2.3