mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
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
This commit is contained in:
parent
39ed5066f2
commit
ff706b45b9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user