diff options
author | Timo Sirainen <cras@irssi.org> | 2002-04-30 22:39:13 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-04-30 22:39:13 +0000 |
commit | 947c1bb1c675b5e027ffade67bb85317836c331b (patch) | |
tree | e425d8b494544f8a0c35cd0bce1e427733c5feb6 /src | |
parent | d79cfc6362af2577507c9f5e73b57f903af42065 (diff) | |
download | irssi-947c1bb1c675b5e027ffade67bb85317836c331b.zip |
/notice *, /ctcp * and /nctcp * crashed if there wasn't active window item.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2743 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/irc/fe-irc-commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/irc/fe-irc-commands.c b/src/fe-common/irc/fe-irc-commands.c index 264ec32f..dafa3dde 100644 --- a/src/fe-common/irc/fe-irc-commands.c +++ b/src/fe-common/irc/fe-irc-commands.c @@ -108,7 +108,7 @@ static void cmd_notice(const char *data, IRC_SERVER_REC *server, &target, &msg)) return; if (strcmp(target, "*") == 0) - target = item == NULL ? NULL : item->name; + target = item == NULL ? "" : item->name; if (*target == '\0' || *msg == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); @@ -130,7 +130,7 @@ static void cmd_ctcp(const char *data, IRC_SERVER_REC *server, &target, &ctcpcmd, &ctcpdata)) return; if (strcmp(target, "*") == 0) - target = item == NULL ? NULL : item->name; + target = item == NULL ? "" : item->name; if (*target == '\0' || *ctcpcmd == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); @@ -161,7 +161,7 @@ static void cmd_nctcp(const char *data, IRC_SERVER_REC *server, &target, &text)) return; if (strcmp(target, "*") == 0) - target = item == NULL ? NULL : item->name; + target = item == NULL ? "" : item->name; if (*target == '\0' || *text == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); |