raise NotImplementedError
def sendLine(self, line):
- if LINEDEBUG: log.msg(">> " + line)
+ if LINEDEBUG: log.msg("<< " + line)
LineReceiver.sendLine(self, line)
def lineReceived(self, line):
- if LINEDEBUG: log.msg("<< " + line)
+ if LINEDEBUG: log.msg(">> " + line)
+ if not self.connected: return
if self.currentMessage:
self.currentMessage.readPos += len(line+"\r\n")
try:
self.handle_UNKNOWN(cmd, params.split(' '))
def rawDataReceived(self, data):
+ if not self.connected: return
extra = ""
self.currentMessage.readPos += len(data)
diff = self.currentMessage.readPos - self.currentMessage.length
msn.NotificationClient.logOut(self)
def connectionLost(self, reason):
- print "NotificationClient.connectionLost!!!"
if not self.factory.msncon: return # If we called logOut
def wait():
LogEvent(INFO, self.factory.msncon.ident)
LogEvent(INFO, self.ident)
del self.msncon
self.transport.disconnect()
+
+ def connectionLost(self, reason):
+ self.msncon = None
+ self.msnobj = None
+ self.ident = (self.ident[0], self.ident[1] + " Disconnected!")
def loggedIn(self):
LogEvent(INFO, self.ident)