hysteria

ii wrapper script
git clone git://git.2f30.org/hysteria
Log | Files | Refs | README | LICENSE

commit 4644dc036aed00900e4d156cdf965db2ea480a82
parent 650e97e3c39b8a82d048f9a1a16bbe1a6d33da23
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 22 May 2014 13:39:50 +0200

highlight: fix aligned nicks in certain cases

if your nick is set to "yournick" and someone uses "yournick_blabla"
then it will highlight that nick as you and also print it non-aligned.

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Mhighlight.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/highlight.c b/highlight.c @@ -107,7 +107,7 @@ main(void) { p += match.rm_eo; /* own nick ?: highlight */ if((ret = regexec(&nick, p, 1, &match, 0)) != REG_NOMATCH && - match.rm_so == 0) + match.rm_so == 0 && p[match.rm_eo] == '>') { fputs(white, stdout); printalign(p, match.rm_eo, 10);