mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 12:43:09 +01:00
supybot-wizard: Ask for SASL username and password
This commit is contained in:
parent
d1191d1c89
commit
ac379eb44c
@ -486,6 +486,26 @@ def main():
|
|||||||
except registry.InvalidRegistryValue:
|
except registry.InvalidRegistryValue:
|
||||||
output("""That's not a valid nick. Go ahead and pick another.""")
|
output("""That's not a valid nick. Go ahead and pick another.""")
|
||||||
|
|
||||||
|
# conf.supybot.networks.<network>.sasl.{username,password}
|
||||||
|
output("""Most networks allow you to create an account, using services
|
||||||
|
typically known as NickServ. If you already have one, you can configure
|
||||||
|
the bot to use that account by proving your username and password
|
||||||
|
(also known as "SASL plain").
|
||||||
|
It is usually not a requirement.""")
|
||||||
|
if yn('Do you want your bot to use a network account?', default=False):
|
||||||
|
while True:
|
||||||
|
username = something('What account name should the bot use?')
|
||||||
|
password = getpass('What is the password of that account?')
|
||||||
|
if not username:
|
||||||
|
if yn('Missing username. Do you want to try again?'):
|
||||||
|
continue
|
||||||
|
if not password:
|
||||||
|
if yn('Missing password. Do you want to try again?'):
|
||||||
|
continue
|
||||||
|
network.sasl.username.set(password)
|
||||||
|
network.sasl.password.set(password)
|
||||||
|
break
|
||||||
|
|
||||||
# conf.supybot.user
|
# conf.supybot.user
|
||||||
if advanced:
|
if advanced:
|
||||||
output("""If you've ever done a /whois on a person, you know that IRC
|
output("""If you've ever done a /whois on a person, you know that IRC
|
||||||
|
Loading…
Reference in New Issue
Block a user