From 1435ac4f6acd48835656246db77f117fd75957c0 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 13 Mar 2026 05:14:53 -0400 Subject: For "/ctcp nick ping", append the timestamp like "/ping user" does. --- TODO | 2 +- src/cmd.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index b971e11..c7931ac 100644 --- a/TODO +++ b/TODO @@ -21,7 +21,7 @@ Other stuff: - In the config, under SDX, saying "N" to "Settings OK" and then reloading the config causes screen corruption (reported by TheDoctor, not tried it myself). -- /ping nick works, but /ctcp ping nick doesn't put the timestamp in +- /ping nick works, but /ctcp nick ping doesn't put the timestamp in the request. - "User has kicked from #channel", the name should be replaced by "you". diff --git a/src/cmd.c b/src/cmd.c index 6c17a30..362cfa8 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -293,13 +293,19 @@ static void do_ctcp(void) { err_arg_req(); return; } + arg2 = nextarg(arg1); if(!arg2) { err_arg_req(); return; } + arg3 = nextarg(arg2); - send_ctcp(); + + if(streq_i(arg2, "PING")) + do_ctcp_ping(); + else + send_ctcp(); } static void do_me(void) { -- cgit v1.2.3