mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-09 11:04:07 +01:00
supybot-wizard: re-prompt for channels if there were too many commas.
This commit is contained in:
parent
19f9604851
commit
8ed0b95962
@ -536,6 +536,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
|
||||||
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:
|
||||||
@ -548,7 +549,11 @@ def main():
|
|||||||
channels.append(channel)
|
channels.append(channel)
|
||||||
network.channels.key.get(channel).setValue(key)
|
network.channels.key.get(channel).setValue(key)
|
||||||
else:
|
else:
|
||||||
output("""Too man commas in %s.""" % channel)
|
output("""Too many commas in %s.""" % channel)
|
||||||
|
error = True
|
||||||
|
break
|
||||||
|
if error:
|
||||||
|
break
|
||||||
try:
|
try:
|
||||||
network.channels.set(' '.join(channels))
|
network.channels.set(' '.join(channels))
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user