mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Also for removing supybot.channels.
This commit is contained in:
parent
c256a3d275
commit
f2fa10fc00
@ -364,12 +364,12 @@ def main():
|
|||||||
if yn('Do you want to set such a password?', default=False):
|
if yn('Do you want to set such a password?', default=False):
|
||||||
network.password.set(getpass())
|
network.password.set(getpass())
|
||||||
|
|
||||||
# conf.supybot.channels
|
# conf.supybot.networks.<network>.channels
|
||||||
output("""Of course, having an IRC bot isn't the most useful thing in the
|
output("""Of course, having an IRC bot isn't the most useful thing in the
|
||||||
world unless you can make that bot join some channels.""")
|
world unless you can make that bot join some channels.""")
|
||||||
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(network.channels())
|
||||||
output("""Separate channels with spaces. If the channel is locked
|
output("""Separate channels with spaces. If the channel is locked
|
||||||
with a key, follow the channel name with the key separated
|
with a key, follow the channel name with the key separated
|
||||||
by a comma. For example:
|
by a comma. For example:
|
||||||
@ -377,7 +377,7 @@ def main():
|
|||||||
while True:
|
while True:
|
||||||
channels = something('What channels?', default=defaultChannels)
|
channels = something('What channels?', default=defaultChannels)
|
||||||
try:
|
try:
|
||||||
conf.supybot.channels.set(channels)
|
network.channels.set(channels)
|
||||||
break
|
break
|
||||||
except registry.InvalidRegistryValue:
|
except registry.InvalidRegistryValue:
|
||||||
# FIXME: say which ones weren't channels.
|
# FIXME: say which ones weren't channels.
|
||||||
@ -386,7 +386,7 @@ def main():
|
|||||||
those channels, really). Be sure the channel key (if you are
|
those channels, really). Be sure the channel key (if you are
|
||||||
supplying one) does not contain a comma.""")
|
supplying one) does not contain a comma.""")
|
||||||
else:
|
else:
|
||||||
conf.supybot.channels.setValue([])
|
network.channels.setValue([])
|
||||||
|
|
||||||
###
|
###
|
||||||
# Plugins
|
# Plugins
|
||||||
|
Loading…
x
Reference in New Issue
Block a user