hirc

IRC client
Log | Files | Refs

commit 0b193abe1aeeb719df717ee5955576d62f05492f
parent 384a29cd44cd57010923cae8f9a932fcf45a475c
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 28 Nov 2021 23:45:01 +0000

config.c ui.c: add formatting for JOIN/PART/QUIT

Diffstat:
Mconfig.c | 15+++++++++++++++
Mui.c | 3+++
2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/config.c b/config.c @@ -215,6 +215,21 @@ struct Config config[] = { .strhandle = config_format, .description = { "Format of messages", NULL}}, + {"format.join", 1, Val_string, + .str = "%{b}%{c:44}+%{o}%{=}${nick} (${ident}@${host})", + .strhandle = config_format, + .description = { + "Format of JOIN messages", NULL}}, + {"format.quit", 1, Val_string, + .str = "%{b}%{c:40}<%{o}%{=}${nick} (${ident}@${host}): ${1}", + .strhandle = config_format, + .description = { + "Format of QUIT messages", NULL}}, + {"format.part", 1, Val_string, + .str = "%{b}%{c:40}-%{o}%{=}${nick} (${ident}@${host}): ${2}", + .strhandle = config_format, + .description = { + "Format of PART messages", NULL}}, {"format.other", 1, Val_string, .str = "${raw}", .strhandle = config_format, diff --git a/ui.c b/ui.c @@ -57,6 +57,9 @@ struct { {"SELF_TLSNOTCOMPILED", "format.ui.tlsnotcompiled"}, #endif /* TLS */ {"PRIVMSG", "format.privmsg"}, + {"JOIN", "format.join"}, + {"PART", "format.part"}, + {"QUIT", "format.quit"}, {NULL, NULL}, };