aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.c11
-rw-r--r--src/command/commands.c7
-rw-r--r--src/command/commands.h1
3 files changed, 18 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 0bca4212..fe390fcb 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -921,6 +921,15 @@ static struct cmd_t command_defs[] =
"The message carbons feature ensures that both sides of all conversations are shared with all the user's clients that implement this protocol.",
NULL } } },
+ { "/receipts",
+ cmd_receipts, parse_args, 1, 1, &cons_receipts_setting,
+ { "/reciepts on|off", "Message delivery receipts.",
+ { "/reciepts on|off",
+ "----------------",
+ "Enable or disable message delivery receipts.",
+ "The user interface will indicate when a message has been received.",
+ NULL } } },
+
{ "/reconnect",
cmd_reconnect, parse_args, 1, 1, &cons_reconnect_setting,
{ "/reconnect seconds", "Set reconnect interval.",
@@ -2020,7 +2029,7 @@ _cmd_complete_parameters(const char * const input)
// autocomplete boolean settings
gchar *boolean_choices[] = { "/beep", "/intype", "/states", "/outtype",
"/flash", "/splash", "/chlog", "/grlog", "/mouse", "/history",
- "/vercheck", "/privileges", "/presence", "/wrap", "/carbons" };
+ "/vercheck", "/privileges", "/presence", "/wrap", "/carbons", "/receipts" };
for (i = 0; i < ARRAY_SIZE(boolean_choices); i++) {
result = autocomplete_param_with_func(input, boolean_choices[i], prefs_autocomplete_boolean_choice);
diff --git a/src/command/commands.c b/src/command/commands.c
index 8075e2c0..528f44e2 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -3939,6 +3939,13 @@ cmd_carbons(gchar **args, struct cmd_help_t help)
}
gboolean
+cmd_receipts(gchar **args, struct cmd_help_t help)
+{
+ return _cmd_set_boolean_preference(args[0], help,
+ "Message delivery receipts", PREF_RECEIPTS);
+}
+
+gboolean
cmd_away(gchar **args, struct cmd_help_t help)
{
_update_presence(RESOURCE_AWAY, "away", args);
diff --git a/src/command/commands.h b/src/command/commands.h
index bbf2ba8a..c74fb901 100644
--- a/src/command/commands.h
+++ b/src/command/commands.h
@@ -86,6 +86,7 @@ gboolean cmd_group(gchar **args, struct cmd_help_t help);
gboolean cmd_help(gchar **args, struct cmd_help_t help);
gboolean cmd_history(gchar **args, struct cmd_help_t help);
gboolean cmd_carbons(gchar **args, struct cmd_help_t help);
+gboolean cmd_receipts(gchar **args, struct cmd_help_t help);
gboolean cmd_info(gchar **args, struct cmd_help_t help);
gboolean cmd_intype(gchar **args, struct cmd_help_t help);
gboolean cmd_invite(gchar **args, struct cmd_help_t help);