diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-18 23:13:32 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-18 23:13:32 +0000 |
commit | ff706b45b972980059d93fd6570862c6c69a05ff (patch) | |
tree | e7a0f8b7068f2f6396f9adac7a35e63b51f6decd | |
parent | 39ed5066f25e8490232f08a1c3dd8bb3f193fe2a (diff) | |
download | irssi-ff706b45b972980059d93fd6570862c6c69a05ff.zip |
Tab-msgcompletion didn't work right after you had used /msg -ircnet nick
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@488 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-common/irc/irc-completion.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fe-common/irc/irc-completion.c b/src/fe-common/irc/irc-completion.c index 46aecb55..78fe9c5d 100644 --- a/src/fe-common/irc/irc-completion.c +++ b/src/fe-common/irc/irc-completion.c @@ -26,6 +26,7 @@ #include "settings.h" #include "irc.h" +#include "irc-commands.h" #include "server.h" #include "channels.h" #include "channels-setup.h" @@ -214,6 +215,8 @@ static void cmd_msg(const char *data, IRC_SERVER_REC *server) PARAM_FLAG_UNKNOWN_OPTIONS | PARAM_FLAG_GETREST, "msg", &optlist, &target, &msg)) return; + server = irccmd_options_get_server(optlist, server); + if (*target != '\0' && *msg != '\0') { if (!ischannel(*target) && *target != '=' && server != NULL) add_private_msg(server, target); |