about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-07-15 22:46:29 +0100
committerJames Booth <boothj5@gmail.com>2014-07-15 22:46:29 +0100
commitd02c8af53210fe7a8a90d9ba5465583cede3d029 (patch)
tree298798b4deec1b968b9de7669e339d8ea2725916 /src/command
parentcc62fe376cd40cf3ad38e16634a32099825579d0 (diff)
downloadprofani-tty-d02c8af53210fe7a8a90d9ba5465583cede3d029.tar.gz
Save chat room message prefix for autocomplete
Diffstat (limited to 'src/command')
-rw-r--r--src/command/command.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/command/command.c b/src/command/command.c
index fba1dae5..61f81c8f 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -1303,10 +1303,8 @@ cmd_reset_autocomplete()
     autocomplete_reset(sub_ac);
 
     if (ui_current_win_type() == WIN_MUC) {
-        Autocomplete nick_ac = muc_get_roster_ac(ui_current_recipient());
-        if (nick_ac != NULL) {
-            autocomplete_reset(nick_ac);
-        }
+        char *recipient = ui_current_recipient();
+        muc_reset_autocomplete(recipient);
     }
 
     autocomplete_reset(who_ac);