mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Fixed a bug introduced with the utils.dqrepr'ing of channels.
This commit is contained in:
parent
2ab2afdae9
commit
0ff6b8927c
@ -330,13 +330,14 @@ 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? '
|
||||||
'Use spaces to separate the channels.')=='y':
|
'Use spaces to separate the channels.')=='y':
|
||||||
channels = something('What channels?')
|
channels = something('What channels?')
|
||||||
while not all(ircutils.isChannel, channels.split()):
|
channels = channels.split()
|
||||||
|
while not all(ircutils.isChannel, channels):
|
||||||
# FIXME: say which ones weren't channels.
|
# FIXME: say which ones weren't channels.
|
||||||
myPrint("""Not all of those are valid IRC channels. Be sure to
|
myPrint("""Not all of those are valid IRC channels. Be sure to
|
||||||
prefix the channel with # (or +, or !, or &, but no one uses those
|
prefix the channel with # (or +, or !, or &, but no one uses those
|
||||||
channels, really).""")
|
channels, really).""")
|
||||||
channels = something('What channels?')
|
channels = something('What channels?')
|
||||||
afterConnect.append('admin join %s' % utils.dqrepr(channels))
|
afterConnect.append('admin join %s' % map(utils.dqrepr, channels))
|
||||||
|
|
||||||
###
|
###
|
||||||
# Plugins
|
# Plugins
|
||||||
@ -547,7 +548,8 @@ def main():
|
|||||||
while throttleTime is None:
|
while throttleTime is None:
|
||||||
throttleTime = something('How long do you want your bot to '
|
throttleTime = something('How long do you want your bot to '
|
||||||
'wait between sending messages to '
|
'wait between sending messages to '
|
||||||
'the server?')
|
'the server? Floating point values '
|
||||||
|
'are accepted.')
|
||||||
try:
|
try:
|
||||||
throttleTime = float(throttleTime)
|
throttleTime = float(throttleTime)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
Loading…
Reference in New Issue
Block a user