diff options
| -rw-r--r-- | TODO | 2 | ||||
| -rw-r--r-- | src/cmd.c | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -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 <yourname> from #channel", the name should be replaced by "you". @@ -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) { |
