this was supposed to be in the last commit. oops.

This commit is contained in:
jesopo 2016-04-10 17:30:44 +01:00
parent 520a6ecd08
commit d0be88ef3b
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3

View file

@ -27,6 +27,7 @@ class Server(object):
self.channel_types = []
self.last_read = None
self.attempted_join = {}
self.ping_sent = False
if ipv4:
self.socket = socket.socket(socket.AF_INET,
socket.SOCK_STREAM)
@ -152,6 +153,7 @@ class Server(object):
if not decoded_lines:
self.disconnect()
self.last_read = time.time()
self.ping_sent = False
return decoded_lines
def send(self, data):
encoded = data.split("\n")[0].strip("\r").encode("utf8")