[PATCH 53/65] close all channels on exit (removes "in" files)

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sun, 9 Nov 2014 18:33:19 +0000

---
 ii.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/ii.c b/ii.c
index 26f7bec..231c5a6 100644
--- a/ii.c
+++ b/ii.c
_AT_@ -725,6 +725,7 @@ run(int ircfd, const char *host)
 int
 main(int argc, char *argv[])
 {
+	Channel *c;
 	struct passwd *spw;
 	const char *key = NULL, *fullname = NULL, *host = "", *service = "6667";
 	char prefix[PATH_MAX];
_AT_@ -777,6 +778,8 @@ main(int argc, char *argv[])
 	run(ircfd, host);
 	if(channelmaster)
 		channel_leave(channelmaster);
+	for(c = channels; c; c = c->next)
+		channel_leave(c);
 
 	return EXIT_SUCCESS;
 }
-- 
2.4.10
--Multipart=_Mon__9_May_2016_17_21_10_+0200_I.6cpFVydhq75aaE
Content-Type: text/x-diff;
 name="0054-update-CHANGES.patch"
Content-Disposition: attachment;
 filename="0054-update-CHANGES.patch"
Content-Transfer-Encoding: 7bit
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Mon May 09 2016 - 17:24:22 CEST