Commits

Anonymous committed f378333

cw_color.sh: sanatize nicks a bit, so nicks like polterge|st don't throw off alignment, and nicks like mike][inq don't screw it up completely

Comments (0)

Files changed (1)

extras/cw_color.sh

 	}
 	time = sprintf("%s%s%s", date_fmt, $2, reset_fmt);
 	sub($2, time, str);
+	gsub(/\[/, "\\[", $3);
+	gsub(/\]/, "\\]", $3);
+	gsub(/\|/, "\\|", $3);
 	sub($3, nick, str);
 	gsub(me, me_col, str);
 	printf("%s%s\n", str, reset_fmt);