mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Fix, cleanup... I'll let you decide. ;)
This commit is contained in:
parent
d2d5f880ed
commit
b15f12126a
@ -368,9 +368,12 @@ def main():
|
||||
if yn('Do you want your bot to join some channels when he connects?',
|
||||
default=True):
|
||||
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:
|
||||
channels = something('What channels? Separate channels with '
|
||||
'spaces.', default=defaultChannels)
|
||||
channels = something('What channels?', default=defaultChannels)
|
||||
try:
|
||||
conf.supybot.channels.set(channels)
|
||||
break
|
||||
@ -379,6 +382,8 @@ def main():
|
||||
output("""Not all of those are valid IRC channels. Be sure to
|
||||
prefix the channel with # (or +, or !, or &, but no one uses
|
||||
those channels, really).""")
|
||||
else:
|
||||
conf.supybot.channels.setValue([])
|
||||
|
||||
###
|
||||
# Plugins
|
||||
|
Loading…
Reference in New Issue
Block a user