mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
supybot-wizard: Fix variable shadowing.
This commit is contained in:
parent
f31e5c4b9a
commit
e972894b8a
@ -538,7 +538,7 @@ def main():
|
|||||||
while True:
|
while True:
|
||||||
channels_input = something('What channels?', default=defaultChannels)
|
channels_input = something('What channels?', default=defaultChannels)
|
||||||
channels = []
|
channels = []
|
||||||
error = False
|
error_ = False
|
||||||
for channel in channels_input.split():
|
for channel in channels_input.split():
|
||||||
L = channel.split(',')
|
L = channel.split(',')
|
||||||
if len(L) == 0:
|
if len(L) == 0:
|
||||||
@ -552,9 +552,9 @@ def main():
|
|||||||
network.channels.key.get(channel).setValue(key)
|
network.channels.key.get(channel).setValue(key)
|
||||||
else:
|
else:
|
||||||
output("""Too many commas in %s.""" % channel)
|
output("""Too many commas in %s.""" % channel)
|
||||||
error = True
|
error_ = True
|
||||||
break
|
break
|
||||||
if error:
|
if error_:
|
||||||
break
|
break
|
||||||
try:
|
try:
|
||||||
network.channels.set(' '.join(channels))
|
network.channels.set(' '.join(channels))
|
||||||
|
Loading…
Reference in New Issue
Block a user