Underline own nick

weechat-hashes
Curtis McEnroe 2018-12-15 01:09:56 -05:00
parent a7681579fa
commit a2a6ce99c0
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
2 changed files with 4 additions and 3 deletions

View File

@ -456,8 +456,9 @@ static void handlePrivmsg(char *prefix, char *params) {
bool ping = !me && isPing(mesg);
uiFmt(
tag, (hot ? UIHot : UIWarm),
"%c\3%d%c%s%c\17 %s",
ping["\17\26"], formatColor(user), me["<("], nick, me[">)"], mesg
"%c%c\3%d<%s>%c %s",
(me ? IRCUnderline : IRCColor), (ping ? IRCReverse : IRCColor),
formatColor(user), nick, IRCReset, mesg
);
logFmt(tag, NULL, "<%s> %s", nick, mesg);
}

2
ui.c
View File

@ -537,7 +537,7 @@ void uiPrompt(void) {
);
} else if (!isCommand(ui.view->tag, input)) {
len = aswprintf(
&prompt, L"\3%d(%s)\3 ",
&prompt, L"\3%d<%s>\3 ",
formatColor(self.user), self.nick
);
}