Experimental IRC client, daemon and bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
345B

  1. #!/bin/sh
  2. LC_ALL=C exec awk '
  3. BEGIN {
  4. print "$quote \"";
  5. print "$set 1";
  6. }
  7. /^\tIRC_(ERR|RPL)_[A-Z]+ *= *[0-9]+,?$/ {
  8. match($3, /^[0-9]+/);
  9. id[$1] = substr($3, RSTART, RLENGTH);
  10. }
  11. /^\t\[IRC_(ERR|RPL)_[A-Z]+\] *= *".*",?$/ {
  12. z = substr($1, 2, length($1) - 2);
  13. match($0, /".*"/);
  14. print id[z] " " substr($0, RSTART, RLENGTH);
  15. }'