while True, not while 1.

pull/1/head
Simon Quigley 7 years ago
parent fcfa7e76e0
commit 0eb0144ad7

@ -85,7 +85,7 @@ def ircmessage(objectstr, who, body, link):
sendnotice(message) sendnotice(message)
def listenirc(): def listenirc():
while 1: while True:
ircmsg = conn.recv(512) ircmsg = conn.recv(512)
if len(ircmsg) == 0: if len(ircmsg) == 0:
print("Connection lost, reconnecting!") print("Connection lost, reconnecting!")

Loading…
Cancel
Save