diff --git a/components/buffer.js b/components/buffer.js
index 77f3dd1..9ebfdce 100644
--- a/components/buffer.js
+++ b/components/buffer.js
@@ -21,9 +21,19 @@ function Nick(props) {
props.onClick();
}
+ let title;
+ if (props.user && irc.isMeaningfulRealname(props.user.realname, props.nick)) {
+ title = stripANSI(props.user.realname);
+ }
+
let colorIndex = djb2(props.nick) % 16 + 1;
return html`
- ${props.nick}
+ ${props.nick}
`;
}
@@ -98,7 +108,11 @@ class LogLine extends Component {
function createNick(nick) {
return html`
- <${Nick} nick=${nick} onClick=${() => onNickClick(nick)}/>
+ <${Nick}
+ nick=${nick}
+ user=${server.users.get(nick)}
+ onClick=${() => onNickClick(nick)}
+ />
`;
}
function createChannel(channel) {
@@ -325,11 +339,16 @@ class FoldGroup extends Component {
render() {
let msgs = this.props.messages;
let buf = this.props.buffer;
+ let server = this.props.server;
let onNickClick = this.props.onNickClick;
function createNick(nick) {
return html`
- <${Nick} nick=${nick} onClick=${() => onNickClick(nick)}/>
+ <${Nick}
+ nick=${nick}
+ user=${server.users.get(nick)}
+ onClick=${() => onNickClick(nick)}
+ />
`;
}