aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-02-25 20:09:09 +0100
committerMichael Vetter <jubalh@iodoru.org>2022-02-25 20:09:09 +0100
commitcdb8383260ce132e1b4784841727a4b210688b91 (patch)
tree8d35253ed44d85a6e15f902969fd4aef16ea8614 /src/command
parenta086d3cd16a39ace45fac46763811081293207de (diff)
downloadprofani-tty-cdb8383260ce132e1b4784841727a4b210688b91.tar.gz
Remove strange block from ox autocomplete
Not sure what this should do. Can't see what kind of key we want to complete here. `/ox help` also doesn't list anything that needs a key.
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_ac.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c
index da961aae..9635211d 100644
--- a/src/command/cmd_ac.c
+++ b/src/command/cmd_ac.c
@@ -2588,24 +2588,6 @@ _ox_autocomplete(ProfWin* window, const char* const input, gboolean previous)
return cmd_ac_complete_filepath(input, "/ox announce", previous);
}
- gboolean result;
- gchar** args = parse_args(input, 2, 3, &result);
- if ((strncmp(input, "/ox", 4) == 0) && (result == TRUE)) {
- GString* beginning = g_string_new("/ox ");
- g_string_append(beginning, args[0]);
- if (args[1]) {
- g_string_append(beginning, " ");
- g_string_append(beginning, args[1]);
- }
- found = autocomplete_param_with_func(input, beginning->str, p_gpg_autocomplete_key, previous, NULL);
- g_string_free(beginning, TRUE);
- if (found) {
- g_strfreev(args);
- return found;
- }
- }
- g_strfreev(args);
-
if (conn_status == JABBER_CONNECTED) {
found = autocomplete_param_with_func(input, "/ox setkey", roster_barejid_autocomplete, previous, NULL);
if (found) {