Fix, cleanup... I'll let you decide. ;)

This commit is contained in:
Stéphan Kochen 2004-02-10 13:16:45 +00:00
parent d2d5f880ed
commit b15f12126a

View File

@ -368,9 +368,12 @@ def main():
if yn('Do you want your bot to join some channels when he connects?', if yn('Do you want your bot to join some channels when he connects?',
default=True): default=True):
defaultChannels = ' '.join(conf.supybot.channels()) defaultChannels = ' '.join(conf.supybot.channels())
output("""Seperate channels with spaces. If the channel is locked
with a key, follow the channel name with the key seperated
by a comma. For example:
#supybot #mychannel,mykey #otherchannel""");
while True: while True:
channels = something('What channels? Separate channels with ' channels = something('What channels?', default=defaultChannels)
'spaces.', default=defaultChannels)
try: try:
conf.supybot.channels.set(channels) conf.supybot.channels.set(channels)
break break
@ -379,6 +382,8 @@ def main():
output("""Not all of those are valid IRC channels. Be sure to output("""Not all of those are valid IRC channels. Be sure to
prefix the channel with # (or +, or !, or &, but no one uses prefix the channel with # (or +, or !, or &, but no one uses
those channels, really).""") those channels, really).""")
else:
conf.supybot.channels.setValue([])
### ###
# Plugins # Plugins