aboutsummaryrefslogtreecommitdiff
path: root/xD-gen-replies.awk
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-26 12:39:26 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-26 13:24:24 +0200
commit5863040f9323e210df0908333c6e85d63af000c0 (patch)
tree8c8838c68b7566b42d9dd84abe7212e93b1740ea /xD-gen-replies.awk
parentf891e5ca638ead13485cc490320e74d698641623 (diff)
downloadxK-5863040f9323e210df0908333c6e85d63af000c0.tar.gz
xK-5863040f9323e210df0908333c6e85d63af000c0.tar.xz
xK-5863040f9323e210df0908333c6e85d63af000c0.zip
Update documentation, clean up
Diffstat (limited to 'xD-gen-replies.awk')
-rwxr-xr-xxD-gen-replies.awk10
1 files changed, 5 insertions, 5 deletions
diff --git a/xD-gen-replies.awk b/xD-gen-replies.awk
index c9e8882..015e743 100755
--- a/xD-gen-replies.awk
+++ b/xD-gen-replies.awk
@@ -2,14 +2,14 @@
BEGIN {
# The message catalog is a by-product
msg = "xD.msg"
- print "$quote \"" > msg;
- print "$set 1" > msg;
+ print "$quote \"" > msg
+ print "$set 1" > msg
}
/^[0-9]+ *IRC_(ERR|RPL)_[A-Z]+ *".*"$/ {
- match($0, /".*"/);
- ids[$1] = $2;
- texts[$2] = substr($0, RSTART, RLENGTH);
+ match($0, /".*"/)
+ ids[$1] = $2
+ texts[$2] = substr($0, RSTART, RLENGTH)
print $1 " " texts[$2] > msg
}