projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Author: Isomer <isomer@undernet.org>
[ircu2.10.12-pk.git]
/
tools
/
convert-conf.py
diff --git
a/tools/convert-conf.py
b/tools/convert-conf.py
index e91aa3df7883ae49da9e9d34e05d03aade184778..5a466e3ec95e1cd540d7e5fa021d52ca78a2c3f7 100755
(executable)
--- a/
tools/convert-conf.py
+++ b/
tools/convert-conf.py
@@
-22,7
+22,7
@@
# Usage:
# convert-conf.py < old.conf > new.conf
#
# 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
#
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
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,host
name
,dummy,clss = parts
for i in [0,1]:
for i in [0,1]:
- mask = [ip,host][i]
+ mask = [ip,host
name
][i]
# Ignore things that aren't masks
if "." not in mask and "*" not in mask and "@" not in mask:
continue
# Ignore things that aren't masks
if "." not in mask and "*" not in mask and "@" not in mask:
continue