about summary refs log tree commit diff stats
path: root/src/command/cmd_ac.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-12-20 10:07:44 +0100
committerMichael Vetter <jubalh@iodoru.org>2019-12-20 10:07:44 +0100
commite904b000adb3dd0e05188d552d4210704be10b6f (patch)
tree361081ddcbe55211e8c7aab53c36a0cc4a2454b0 /src/command/cmd_ac.c
parentabd8e3d6c579042e3d85b0a33bf203a080fc6b99 (diff)
downloadprofani-tty-e904b000adb3dd0e05188d552d4210704be10b6f.tar.gz
Make `/roster color` configurable when offline
Diffstat (limited to 'src/command/cmd_ac.c')
-rw-r--r--src/command/cmd_ac.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c
index 7950c811..6d035fa5 100644
--- a/src/command/cmd_ac.c
+++ b/src/command/cmd_ac.c
@@ -1787,6 +1787,10 @@ _roster_autocomplete(ProfWin *window, const char *const input, gboolean previous
     if (result) {
         return result;
     }
+    result = autocomplete_param_with_func(input, "/roster color", prefs_autocomplete_boolean_choice, previous);
+    if (result) {
+        return result;
+    }
 
     jabber_conn_status_t conn_status = connection_get_status();
     if (conn_status == JABBER_CONNECTED) {
@@ -1823,10 +1827,6 @@ _roster_autocomplete(ProfWin *window, const char *const input, gboolean previous
         if (result) {
             return result;
         }
-        result = autocomplete_param_with_func(input, "/roster color", prefs_autocomplete_boolean_choice, previous);
-        if (result) {
-            return result;
-        }
     }
 
     result = autocomplete_param_with_ac(input, "/roster remove_all", roster_remove_all_ac, TRUE, previous);