about summary refs log tree commit diff stats
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index d4f1756d..475bb433 100644
--- a/src/command.c
+++ b/src/command.c
@@ -94,6 +94,7 @@ static gboolean _cmd_set_flash(const char * const inp, struct cmd_help_t help);
 static gboolean _cmd_set_showsplash(const char * const inp, struct cmd_help_t help);
 static gboolean _cmd_set_chlog(const char * const inp, struct cmd_help_t help);
 static gboolean _cmd_set_history(const char * const inp, struct cmd_help_t help);
+static gboolean _cmd_set_states(const char * const inp, struct cmd_help_t help);
 static gboolean _cmd_vercheck(const char * const inp, struct cmd_help_t help);
 static gboolean _cmd_away(const char * const inp, struct cmd_help_t help);
 static gboolean _cmd_online(const char * const inp, struct cmd_help_t help);
@@ -331,8 +332,26 @@ static struct cmd_t setting_commands[] =
           "to myfriend@chatserv.com, the following chat log will be created:",
           "",
           "    ~/.profanity/log/someuser_at_chatserv.com/myfriend_at_chatserv.com",
+          "",
+          "Config file section : [ui]",
+          "Config file value :   chlog=true|false",
+          NULL } } },
+
+    { "/states",
+        _cmd_set_states,
+        { "/states on|off", "Send chat states during a chat session.",
+        { "/states on|off",
+          "--------------",
+          "Sending of chat state notifications during chat sessions.",
+          "Enabling this will send information about your activity during a chat",
+          "session with somebody, such as whether you have become inactive, or",
+          "have close the chat window.",
+          "",
+          "Config file section : [ui]",
+          "Config file value :   states=true|false",
           NULL } } },
 
+
     { "/history",
         _cmd_set_history,
         { "/history on|off", "Chat history in message windows.",
@@ -343,6 +362,9 @@ static struct cmd_t setting_commands[] =
           "The last day of messages are shown, or if you have had profanity open",
           "for more than a day, messages will be shown from the day which",
           "you started profanity.",
+          "",
+          "Config file section : [ui]",
+          "Config file value :   history=true|false",
           NULL } } }
 };
 
@@ -1013,6 +1035,13 @@ _cmd_set_beep(const char * const inp, struct cmd_help_t help)
 }
 
 static gboolean
+_cmd_set_states(const char * const inp, struct cmd_help_t help)
+{
+    return _cmd_set_boolean_preference(inp, help, "/states",
+        "Sending chat states", prefs_set_states);
+}
+
+static gboolean
 _cmd_set_notify(const char * const inp, struct cmd_help_t help)
 {
     char *kind = NULL;