summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-11 09:13:17 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-11 09:13:17 +0000
commitdddd9d17a6fc3c35dc15255fb67a10682af8a2a3 (patch)
tree1bd5e9eff695e21efdb9465666f2825334bef78f
parent27665c5cfbd1085eb0048d87dab8c0f8dfa6f2b4 (diff)
downloadirssi-dddd9d17a6fc3c35dc15255fb67a10682af8a2a3.zip
In msgs window, you can now complete anywhere /MSG completion nicks (eg.
/ignore nick<tab>) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2430 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-common/core/chat-completion.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c
index a3d92ccd..0d74acaf 100644
--- a/src/fe-common/core/chat-completion.c
+++ b/src/fe-common/core/chat-completion.c
@@ -22,6 +22,7 @@
#include "signals.h"
#include "commands.h"
#include "misc.h"
+#include "levels.h"
#include "settings.h"
#include "chatnets.h"
@@ -603,6 +604,9 @@ static void sig_complete_word(GList **list, WINDOW_REC *window,
/* nick completion .. we could also be completing a nick
after /MSG from nicks in channel */
complete_window_nicks(list, window, word, linestart);
+ } else if (window->level & MSGLEVEL_MSGS) {
+ /* msgs window, complete /MSG nicks */
+ *list = completion_msg(server, NULL, word, NULL);
}
if (*list != NULL) signal_stop();