mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
target_type for "/MSG *" wasn't set properly.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2384 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7c94cb083f
commit
ebaea06eb9
@ -335,14 +335,18 @@ 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) {
|
||||
}
|
||||
|
||||
if (strcmp(target, "*") == 0) {
|
||||
/* send to active channel/query */
|
||||
if (item == NULL)
|
||||
cmd_param_error(CMDERR_NOT_JOINED);
|
||||
|
||||
target_type = IS_CHANNEL(item) ?
|
||||
SEND_TARGET_CHANNEL : SEND_TARGET_NICK;
|
||||
target = item->name;
|
||||
}
|
||||
|
||||
if (g_hash_table_lookup(optlist, "channel") != NULL)
|
||||
else if (g_hash_table_lookup(optlist, "channel") != NULL)
|
||||
target_type = SEND_TARGET_CHANNEL;
|
||||
else if (g_hash_table_lookup(optlist, "nick") != NULL)
|
||||
target_type = SEND_TARGET_NICK;
|
||||
|
Loading…
Reference in New Issue
Block a user