Lets add a default here

This commit is contained in:
lukeroge 2012-04-04 10:40:07 +12:00
parent 1670e1d8ac
commit 39744d714a

View file

@ -52,7 +52,7 @@ def onjoin(paraml, conn=None, bot=None):
time.sleep(1) time.sleep(1)
# Stay-alive code # Stay-alive code
stayalive = conn.conf.get('stayalive') stayalive = conn.conf.get('stayalive', False)
if stayalive: if stayalive:
delay = conn.conf.get('stayalive_delay', 20) delay = conn.conf.get('stayalive_delay', 20)
while True: while True: