

def handle(self):
    while self.socket:
        try:
            buffer = self.socket.recv(1024)
            if (buffer == ''):
                self.log.error('Disconnected from IRC')
                self.socket = False
                self.ready = False
                break
        except socket.timeout:
            if self.timeout:
                line.socket = False
                break
            else:
                self.send(('PING :%s' % self.randomString()))
                self.timeout = True
            buffer = ''
        except:
            buffer = ''
        for line in buffer.split('\n'):
            self.line = line
            self.parse()

dataset/ETHPy150Open benbaptist/minecraft-wrapper/src/irc.py IRC.handle/VarMisuse@80/93 `self`->`line`