diff options
author | Berke Viktor <berkeviktor@aol.com> | 2011-09-07 22:08:24 +0200 |
---|---|---|
committer | Berke Viktor <berkeviktor@aol.com> | 2011-09-07 22:08:24 +0200 |
commit | 36f67ffe28f2b4a07fef3d48721a40309768e005 (patch) | |
tree | 07c92a85ad8d4596cb7949c8560a61b5298c7ae0 /src/common | |
parent | dab07a6aa557faeb7f9cb13b6df1d6f836018c3e (diff) |
add command for saving the preferences
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/outbound.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c index 417ac323..3a4d379c 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -2887,6 +2887,14 @@ cmd_recv (struct session *sess, char *tbuf, char *word[], char *word_eol[]) } static int +cmd_saveconf (struct session *sess, char *tbuf, char *word[], char *word_eol[]) +{ + save_config (); + + return TRUE; +} + +static int cmd_say (struct session *sess, char *tbuf, char *word[], char *word_eol[]) { char *speech = word_eol[2]; @@ -3638,6 +3646,7 @@ const struct commands xc_cmds[] = { #endif {"RECV", cmd_recv, 1, 0, 1, N_("RECV <text>, send raw data to xchat, as if it was received from the irc server")}, + {"SAVECONF", cmd_saveconf, 0, 0, 1, N_("SAVECONF, saves the current settings to disk")}, {"SAY", cmd_say, 0, 0, 1, N_("SAY <text>, sends the text to the object in the current window")}, {"SEND", cmd_send, 0, 0, 1, N_("SEND <nick> [<file>]")}, |