hirc

IRC client
Log | Files | Refs

commit 5dc7b34a3e3bd73c8650fcd3fde4b0e10fefebb7
parent 0db89ece6ee58ffc0e00102680e54c4d17e70d00
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 12 Mar 2022 23:28:58 +0000

Document ${priv}

Diffstat:
Mhirc.1.header | 2++
Msrc/ui.c | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/hirc.1.header b/hirc.1.header @@ -93,6 +93,8 @@ The command of a message. .It ${nick} Nickname that sent the message. Since this is only the raw nick, this is commonly used with %{nick:...} +.It ${priv} +Character indicating channel priviledge of user. Empty if none. .It ${ident} Ident of the nick that sent the message. .It ${host} diff --git a/src/ui.c b/src/ui.c @@ -1283,7 +1283,7 @@ ui_format_(struct Window *window, char *format, struct History *hist, int recurs if (hist->from) { priv[0] = hist->from->priv; - priv[1] = '\0'; + priv[priv[0] != ' '] = '\0'; subs[sub_priv].val = priv; }