mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 00:22:17 +02:00
/msg , crashfix by c0ffee
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3196 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9da6e85aed
commit
1cbd975b2d
1 changed files with 8 additions and 1 deletions
|
|
@ -364,10 +364,17 @@ static void cmd_msg(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
|
||||||
if (strcmp(target, ",") == 0 || strcmp(target, ".") == 0) {
|
if (strcmp(target, ",") == 0 || strcmp(target, ".") == 0) {
|
||||||
target = parse_special(&target, server, item,
|
target = parse_special(&target, server, item,
|
||||||
NULL, &free_ret, NULL, 0);
|
NULL, &free_ret, NULL, 0);
|
||||||
if (target != NULL && *target == '\0')
|
if (target != NULL && *target == '\0') {
|
||||||
|
if (free_ret)
|
||||||
|
g_free(target);
|
||||||
target = NULL;
|
target = NULL;
|
||||||
|
free_ret = FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (target == NULL)
|
||||||
|
target = origtarget;
|
||||||
|
|
||||||
if (strcmp(target, "*") == 0) {
|
if (strcmp(target, "*") == 0) {
|
||||||
/* send to active channel/query */
|
/* send to active channel/query */
|
||||||
if (item == NULL)
|
if (item == NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue