diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-28 20:00:39 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-28 20:00:39 +0000 |
commit | 8fc1e0535cafca563165bb4ebb12d1fe1dc4b041 (patch) | |
tree | 5407270af9e8f374e7cb3c01a953565be6fd366f /src/fe-common/irc/fe-irc-commands.c | |
parent | 7e531cec7a80a3bc6cecb844d66ae5127f7e7a94 (diff) | |
download | irssi-8fc1e0535cafca563165bb4ebb12d1fe1dc4b041.zip |
You can send message to different server with /MSG -<server tag> nick...
Tab-completion changes:
- in empty line, it completed /MSG nick1 fine, but another tab press
didn't give the next nick.
- "/command <tab>" doesn't try to complete /command, but instead it tries
to complete it's subcommand or first parameter.
- /MSG completion now goes through nicks in ALL servers prefixing the nick
with -<server tag> if needed.
- /MSG -tag <tab> completes only nicks in "tag" server.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@388 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc/fe-irc-commands.c')
-rw-r--r-- | src/fe-common/irc/fe-irc-commands.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-irc-commands.c b/src/fe-common/irc/fe-irc-commands.c index 33850798..1852954b 100644 --- a/src/fe-common/irc/fe-irc-commands.c +++ b/src/fe-common/irc/fe-irc-commands.c @@ -27,6 +27,7 @@ #include "levels.h" #include "irc.h" +#include "irc-commands.h" #include "server.h" #include "mode-lists.h" #include "nicklist.h" @@ -90,6 +91,7 @@ static void cmd_query(gchar *data, IRC_SERVER_REC *server, WI_IRC_REC *item) static void cmd_msg(gchar *data, IRC_SERVER_REC *server, WI_ITEM_REC *item) { + GHashTable *optlist; WINDOW_REC *window; CHANNEL_REC *channel; NICK_REC *nickrec; @@ -99,9 +101,12 @@ static void cmd_msg(gchar *data, IRC_SERVER_REC *server, WI_ITEM_REC *item) g_return_if_fail(data != NULL); - if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST, &target, &msg)) + if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_OPTIONS | + PARAM_FLAG_UNKNOWN_OPTIONS | PARAM_FLAG_GETREST, + "msg", &optlist, &target, &msg)) return; if (*target == '\0' || *msg == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); + server = irccmd_options_get_server(optlist, server); if (*target == '=') { |