hirc

[archived] IRC client
git clone https://hhvn.uk/hirc
git clone git://hhvn.uk/hirc
Log | Files | Refs

rpl-ui-gen.awk (250B)


      1 #!/bin/awk -f
      2 # Parses RFC1459 for formatmap[]
      3 # This file is replaced in the public domain
      4 
      5 $1 ~ /^[0-9][0-9][0-9]$/ && ($2 ~ /RPL_/ || $2 ~ /ERR_/) {
      6 	rpl = tolower($2)
      7 	sub(/_/, ".", rpl)
      8 	printf("\t{\"%03d\",\t\t\t\"format.%s\"},\n", $1, rpl);
      9 }