commit b284464efaf288773ae79d93b990457081e0bcc2
parent 6fa0f4ae5005e1dc5c85a6440e306cfd2463a13f
Author: hhvn <dev@hhvn.uk>
Date: Mon, 20 Dec 2021 15:04:13 +0000
s/commands.c: /ctcp fix (forgot to :w)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/commands.c b/src/commands.c
@@ -257,7 +257,7 @@ command_ctcp(struct Server *server, char *str) {
target = strtok_r(str, " ", &ctcp);
- if ((!target || !*target) && !selected.channel) {
+ if (!ctcp && !selected.channel) {
ui_error("no channel or query selected", NULL);
return;
} else if (!ctcp) {