summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-06-06 19:16:50 -0400
committerTingPing <tingping@tingping.se>2013-06-06 19:16:50 -0400
commit0e420fbee80ec3c6aa4f73915d832cf22b121e73 (patch)
tree44fef9d0b32083a1e372674a70470b6f46a6269f /src/common/outbound.c
parentcf505b850bb02e7b691fbd5f48618d66fe55bc0a (diff)
Save chanopt after any changes
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index e6113488..95c8a354 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -575,8 +575,13 @@ cmd_unban (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 static int
 cmd_chanopt (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 {
+	int ret;
+	
 	/* chanopt.c */
-	return chanopt_command (sess, tbuf, word, word_eol);
+	ret = chanopt_command (sess, tbuf, word, word_eol);
+	chanopt_save_all ();
+	
+	return ret;
 }
 
 static int