Commits

Evan Gates  committed e80066d

use me instead of nick as lookup during gsub, now works properly when NICK is a regex

  • Participants
  • Parent commits b1eea8e

Comments (0)

Files changed (1)

File extras/cw_color.awk

 		head_len = pad + 4 + 2;
 
 	$0 = substr($0, 4);
-	gsub(me, reset mention "&" reset nick_hash[nick]);
+	gsub(me, reset mention "&" reset nick_hash[me]);
 	sub("^ACTION", action reset nick_hash[nick]);
 
 	printf("%s%s %s%*s%s | %s%.*s%s\n", notice, time, nick_hash[nick], pad, nick, reset, nick_hash[nick], cols - head_len - 3, $0, reset);