Committer : isomer
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2005-04-09 03:54:34 UTC
Modified files:
tools/convert-conf.py
Log message:
Author: Isomer <[EMAIL PROTECTED]>
Log message:
Fix bug in convert-conf where it wouldn't convert usernames for hostmasks
matches in I: correctly
---------------------- diff included ----------------------
Index: ircu2.10/tools/convert-conf.py
diff -u ircu2.10/tools/convert-conf.py:1.3 ircu2.10/tools/convert-conf.py:1.4
--- ircu2.10/tools/convert-conf.py:1.3 Sat Mar 19 15:04:07 2005
+++ ircu2.10/tools/convert-conf.py Fri Apr 8 20:54:24 2005
@@ -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 @@
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
----------------------- End of diff -----------------------