about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--chat.h1
-rw-r--r--handle.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/chat.h b/chat.h
index 6c2734f..e5602b5 100644
--- a/chat.h
+++ b/chat.h
@@ -215,6 +215,7 @@ static inline void set(char **field, const char *value) {
 #define ENUM_TAG \
 	X("+draft/reply", TagReply) \
 	X("causal.agency/pos", TagPos) \
+	X("display-name", TagDisplayName) \
 	X("msgid", TagMsgID) \
 	X("time", TagTime)
 
diff --git a/handle.c b/handle.c
index 388a122..e68c4b3 100644
--- a/handle.c
+++ b/handle.c
@@ -80,6 +80,9 @@ static void require(struct Message *msg, bool origin, uint len) {
 		if (!msg->nick) msg->nick = "*.*";
 		if (!msg->user) msg->user = msg->nick;
 		if (!msg->host) msg->host = msg->user;
+		if (msg->tags[TagDisplayName]) {
+			msg->nick = msg->tags[TagDisplayName];
+		}
 	}
 	for (uint i = 0; i < len; ++i) {
 		if (msg->params[i]) continue;
c/commit/bin/1sh/histedit.c?id=fc19da5543c6740635578cfce7dfbf69374ec9a6&follow=1'>Source .editrc before applying -v or -eJune McEnroe Otherwise a bind -v in .editrc will take precedence and overwrite the ^I binding for sh-complete. 2019-12-20Disable signing commitsJune McEnroe Why did I ever turn this on? This gets me nothing but inconvenience. RIP to all the wasted bytes in my git repos. 2019-12-19Ignore about-filterJune McEnroe 2019-12-19Fix matching make tags with no sourcesJune McEnroe 2019-12-19Avoid matching := assignments as tagsJune McEnroe 2019-12-18Hide line numbers when rendering mdocJune McEnroe Hack: output an extra <td> after rendering mdoc so that line numbers can be hidden based on there being three. This required splitting source-filter and about-filter since on about pages there is no table. 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe :target persists after you click on something else. 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe NULs in the input cause an infinite loop in htmlEscape, not to mention regexes obviously not working, etc. 2019-12-16Post "cgit setup"June McEnroe