Author: Isomer <isomer@undernet.org>
[ircu2.10.12-pk.git] / tools / convert-conf.py
index c9f8831614754e70bd7b5cc57560c41b28c64098..fbbcf93c1506295d08d5b9ba19dfc14880fd2ff1 100755 (executable)
@@ -22,7 +22,7 @@
 # Usage:
 #   convert-conf.py < old.conf > new.conf
 #
-# $Id: convert-conf.py,v 1.5 2005-04-17 02:18:55 isomer Exp $
+# $Id: convert-conf.py,v 1.6 2005-04-25 02:51:18 isomer Exp $
 #
 
 import sys
@@ -331,7 +331,7 @@ if len(connects.keys()):
                print "\tname = \"%s\";" % qstr(connects[i]["name"])
                print "\thost = \"%s\";" % qstr(connects[i]["host"])
                print "\tpassword = \"%s\";" % qstr(connects[i]["password"])
-               if connects[i]["port"]:
+               if connects[i].has_key("port"):
                        print "\tport = %s;" % connects[i]["port"]
                print "\tclass = \"%s\";" % qstr(connects[i]["class"])
                if connects[i].has_key("hub"):