mirror of https://github.com/Mikaela/Limnoria.git
Convert channel capabilities, too!
This commit is contained in:
parent
1663642227
commit
a15b87cd1a
|
@ -41,6 +41,11 @@ if __name__ == '__main__':
|
||||||
write(fd, ' hashed %s' % u.hashed)
|
write(fd, ' hashed %s' % u.hashed)
|
||||||
write(fd, ' password %s' % u.password)
|
write(fd, ' password %s' % u.password)
|
||||||
for capability in u.capabilities:
|
for capability in u.capabilities:
|
||||||
|
try:
|
||||||
|
(channel, capability) = rsplit(capability, '.', 1)
|
||||||
|
capability = ','.join(channel, capability)
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
write(fd, ' capability %s' % capability)
|
write(fd, ' capability %s' % capability)
|
||||||
for hostmask in u.hostmasks:
|
for hostmask in u.hostmasks:
|
||||||
write(fd, ' hostmask %s' % hostmask)
|
write(fd, ' hostmask %s' % hostmask)
|
||||||
|
|
Loading…
Reference in New Issue