summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-11-03 06:29:51 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-11-03 06:29:51 +0100
commit9ee3613bad948e4ca3d5fb4c5dd1681c9bfe821b (patch)
tree71d3e8a00ce5cbc1b62865e4c1b30df3dcbfc908 /src
parent27391f458fc5cfb8cedc748ef05a38d6d0aeaf0c (diff)
Add export config stub
Diffstat (limited to 'src')
-rw-r--r--src/common/outbound.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index 2c4d46a1..715b5282 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -1891,6 +1891,28 @@ cmd_exec (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 
 #endif
 
+#if 0
+/* export config stub */
+static int
+cmd_exportconf (struct session *sess, char *tbuf, char *word[], char *word_eol[])
+{
+	/* this is pretty much the same as in hexchat_exit() */
+	save_config ();
+	if (prefs.save_pevents)
+	{
+		pevent_save (NULL);
+	}
+	sound_save ();
+	notify_save ();
+	ignore_save ();
+	free_sessions ();
+	chanopt_save_all ();
+
+	return TRUE;		/* success */
+	return FALSE;		/* fail */
+}
+#endif
+
 static int
 cmd_flushq (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 {
@@ -3610,6 +3632,9 @@ const struct commands xc_cmds[] = {
 	{"EXECWRITE", cmd_execw, 0, 0, 1, N_("EXECWRITE, sends data to the processes stdin")},
 #endif
 #endif
+#if 0
+	{"EXPORTCONF", cmd_exportconf, 0, 0, 1, N_("EXPORTCONF, exports HexChat settings")},
+#endif
 	{"FLUSHQ", cmd_flushq, 0, 0, 1,
 	 N_("FLUSHQ, flushes the current server's send queue")},
 	{"GATE", cmd_gate, 0, 0, 1,