mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue