From: Perry Lorier Date: Sat, 9 Apr 2005 03:54:24 +0000 (+0000) Subject: Author: Isomer X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=28c3b9ad484011c975df85aae85462dc4daf2299 Author: Isomer Log message: Fix bug in convert-conf where it wouldn't convert usernames for hostmasks matches in I: correctly git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1359 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/tools/convert-conf.py b/tools/convert-conf.py index e91aa3d..5a466e3 100755 --- a/tools/convert-conf.py +++ b/tools/convert-conf.py @@ -22,7 +22,7 @@ # Usage: # convert-conf.py < old.conf > new.conf # -# $Id: convert-conf.py,v 1.3 2005-03-19 23:04:07 entrope Exp $ +# $Id: convert-conf.py,v 1.4 2005-04-09 03:54:24 isomer Exp $ # import sys @@ -108,9 +108,9 @@ def do_iline(parts): if len(parts)!=6: sys.stderr.write("WARNING: I:line doesn't have enough fields on line %i\n" % lno) return - iline,ip,password,host,dummy,clss = parts + iline,ip,password,hostname,dummy,clss = parts for i in [0,1]: - mask = [ip,host][i] + mask = [ip,hostname][i] # Ignore things that aren't masks if "." not in mask and "*" not in mask and "@" not in mask: continue