mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-10-14 17:59:29 +02:00
It's nice when things work
This commit is contained in:
parent
70dc5c3096
commit
1ed71e9181
@ -269,7 +269,7 @@ def main():
|
|||||||
this is the network name, not the actual server you plan to connect
|
this is the network name, not the actual server you plan to connect
|
||||||
to.""")
|
to.""")
|
||||||
network = None
|
network = None
|
||||||
elif not isValidRegistryName:
|
elif not registry.isValidRegistryName(network):
|
||||||
output("""That's not a valid name for one reason or another. Please
|
output("""That's not a valid name for one reason or another. Please
|
||||||
pick a simpler name, one more likely to be valid.""")
|
pick a simpler name, one more likely to be valid.""")
|
||||||
network = None
|
network = None
|
||||||
@ -279,7 +279,8 @@ def main():
|
|||||||
|
|
||||||
defaultServer = None
|
defaultServer = None
|
||||||
server = None
|
server = None
|
||||||
while not server:
|
ip = None
|
||||||
|
while not ip:
|
||||||
serverString = something('What server would you like to connect to?',
|
serverString = something('What server would you like to connect to?',
|
||||||
default=defaultServer)
|
default=defaultServer)
|
||||||
try:
|
try:
|
||||||
@ -599,13 +600,13 @@ def main():
|
|||||||
not yn('Would you like to turn off the bot\'s replies to messages '
|
not yn('Would you like to turn off the bot\'s replies to messages '
|
||||||
'prefixed with its nick?', default=False))
|
'prefixed with its nick?', default=False))
|
||||||
|
|
||||||
# conf.supybot.showSimpleSyntax
|
# conf.supybot.reply.showSimpleSyntax
|
||||||
output("""By default, when the bot receives a message with invalid
|
output("""By default, when the bot receives a message with invalid
|
||||||
arguments, the bot returns the full help (syntax and description) of
|
arguments, the bot returns the full help (syntax and description) of
|
||||||
the command. If showOnlySyntax is set to True, though, the bot will
|
the command. If showOnlySyntax is set to True, though, the bot will
|
||||||
return just the syntax of the command. Of course, the help will still
|
return just the syntax of the command. Of course, the help will still
|
||||||
be available via the help command.""")
|
be available via the help command.""")
|
||||||
conf.supybot.showSimpleSyntax.setValue(
|
conf.supybot.reply.showSimpleSyntax.setValue(
|
||||||
yn('Would you like to show only the syntax of commands when '
|
yn('Would you like to show only the syntax of commands when '
|
||||||
'they\'re given invalid arguments?', default=False))
|
'they\'re given invalid arguments?', default=False))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user