def connectionLost(self, reason): # noqa log_message = 'Disconnected' if self.__shutdown_callID else 'Connection lost, trying to reconnect...' self.log.info(log_message) self.factory.bots.remove(self) IRCClient.connectionLost(self, reason) if self.__shutdown_callID and self.__shutdown_callID.active(): self.__shutdown_callID.reset(0)
def connectionLost(self, reason): for channel in self.factory.channels: self.left(channel) loggirc2('Connection lost because: %s.' % reason) self.log("[disconnected at %s]" % time.asctime(time.localtime(time.time()))) self.logger[config.BOTNAME].close() IRCClient.connectionLost(self, reason)
def connectionLost(self, reason): log.warn("Disconnected from %s (%s:%s): %s" % (self.servername, self.factory.hostname, self.factory.port, reason)) IRCClient.connectionLost(self, reason) try: self.l.stop() # All done now. except AssertionError: pass # We never managed to connect in the first place!
def connectionLost(self, reason): log.warn( "Disconnected from %s (%s:%s): %s" % (self.servername, self.factory.hostname, self.factory.port, reason) ) IRCClient.connectionLost(self, reason) try: self.l.stop() # All done now. except AssertionError: pass # We never managed to connect in the first place!
def connectionLost(self, reason): IRCClient.connectionLost(self, reason) log.msg("[disconnected at %s]" % time.asctime(time.localtime(time.time())))
def connectionLost(self, reason): IRCClient.connectionLost(self, reason) for logger in self.loggers.values(): logger.log("[disconnected at %s]" % time.asctime(time.localtime(time.time()))) logger.close()
def connectionLost(self, reason): IRCClient.connectionLost(self, reason) self.container._setBotinst(None) if self.state: self.state._resetnetwork() # TODO: reason needs to be properly formatted/actual reason being extracted from the "Failure" or whatever print "[disconnected: %s]" % reason
def connectionLost(self): IRCClient.connectionLost(self, reason)
def connectionLost(self, reason): IRCClient.connectionLost(self, reason)
def connectionLost(self, reason): IRCClient.connectionLost(self, reason) for logger in self.loggers.values(): logger.log("[disconnected at %s]" % time.asctime(time.localtime(time.time()))) logger.close()
def connectionLost(self, reason): IRCClient.connectionLost(self, reason) self.container._setBotinst(None) if self.state: self.state._resetnetwork() # TODO: reason needs to be properly formatted/actual reason being extracted from the "Failure" or whatever print "[disconnected: %s]" % reason
def connectionLost(self, reason): RCBot.log('Server', "Disconnected") IRCClient.connectionLost(self, reason)
def connectionLost(self, reason): IRCClient.connectionLost(self, reason) log.msg("[%s] Connection lost, unregistering." % self.host) relayer.unregister(self)
def connectionLost(self, reason): IRCClient.connectionLost(self, reason) print('disconnected') reactor.connectTCP(config["host"], config["port"], KittyFactory())
def connectionLost(self, reason): IRCClient.connectionLost(self, reason) self.l.stop() # All done now. log.warn("Disconnected from %s" % self.servername)