hirc

IRC client
Log | Files | Refs

commit cbca1d9d32f4c861c3d596fb6489491f2c8a5fd8
parent 0687c0ab5e8c12f6a31d454f9280b36828f715d9
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 26 Mar 2022 22:15:25 +0000

ERROR command format

Diffstat:
Msrc/config.c | 6++++++
Msrc/ui.c | 1+
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/config.c b/src/config.c @@ -515,6 +515,12 @@ struct Config config[] = { .strhandle = config_redraws, .description = { "Format of replies to /ping", NULL}}, + {"format.error", 1, Val_string, + .str = "%{c:28}ERROR:%{o} ${1}", + .strhandle = config_redraws, + .description = { + "Format of generic ERROR messages.", + "Most commonly seen when being /kill'd.", NULL}}, /* Generic numerics (bit boring) */ {"format.rpl.welcome", 1, Val_string, .str = "${2-}", diff --git a/src/ui.c b/src/ui.c @@ -108,6 +108,7 @@ struct { {"TOPIC", "format.topic"}, {"INVITE", "format.invite"}, {"PONG", "format.pong"}, + {"ERROR", "format.error"}, /* START: misc/rpl-ui-gen.awk */ {"200", "format.rpl.tracelink"}, {"201", "format.rpl.traceconnecting"},