From 34cdeaae9369af5dce3ce3a4a7756c033bc44cc5 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Mon, 3 Jul 2006 06:00:18 +0000 Subject: worked on formats. working on themes now; testing adding functions and methods to objects git-svn-id: http://svn.irssi.org/repos/irssi-python@4295 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- constants.awk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'constants.awk') diff --git a/constants.awk b/constants.awk index c9395c1..18f8002 100644 --- a/constants.awk +++ b/constants.awk @@ -3,7 +3,12 @@ BEGIN { } { - printf(" {\"%s\", %25s},\n", $1,$1); + if (NF >= 2) + constant = $2; + else + constant = $1; + + printf(" {\"%s\", %25s},\n", $1, constant); } END { -- cgit