1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00

/MSG * in empty window now prints "not joined" error

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1707 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-08-05 06:45:29 +00:00 committed by cras
parent fc2d7d4ab8
commit 6a422552d5

View File

@ -297,8 +297,12 @@ static void cmd_msg(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
NULL, &free_ret, NULL, 0);
if (target != NULL && *target == '\0')
target = NULL;
} else if (strcmp(target, "*") == 0 && item != NULL)
} else if (strcmp(target, "*") == 0) {
if (item == NULL)
cmd_param_error(CMDERR_NOT_JOINED);
target = item->name;
}
if (target != NULL)
server->send_message(server, target, msg);