commit 57a7915f77857922763afb1235a2cfe7752d89f7
parent 22f4120146ffce1e10d090de9b5ae97dc3c5c7dd
Author: hhvn <dev@hhvn.uk>
Date: Mon, 14 Mar 2022 15:56:30 +0000
Add formats for PONG
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/config.c b/src/config.c
@@ -499,6 +499,11 @@ struct Config config[] = {
.strhandle = config_redraws,
.description = {
"Format of an invitation being received.", NULL}},
+ {"format.pong", 1, Val_string,
+ .str = "PONG from %{nick:${nick}}${nick}%{o}: ${2}",
+ .strhandle = config_redraws,
+ .description = {
+ "Format of replies to /ping", NULL}},
/* Generic numerics (bit boring) */
{"format.rpl.welcome", 1, Val_string,
.str = "${2-}",
diff --git a/src/ui.c b/src/ui.c
@@ -106,6 +106,7 @@ struct {
{"NICK", "format.nick"},
{"TOPIC", "format.topic"},
{"INVITE", "format.invite"},
+ {"PONG", "format.pong"},
/* START: misc/rpl-ui-gen.awk */
{"200", "format.rpl.tracelink"},
{"201", "format.rpl.traceconnecting"},