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)
Beispiel #2
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)
Beispiel #3
0
 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!
Beispiel #4
0
 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!
Beispiel #5
0
 def connectionLost(self, reason):
     IRCClient.connectionLost(self, reason)
     log.msg("[disconnected at %s]" % time.asctime(time.localtime(time.time())))
Beispiel #6
0
 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()
Beispiel #7
0
	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)
Beispiel #9
0
 def connectionLost(self, reason):
     IRCClient.connectionLost(self, reason)
Beispiel #10
0
 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()
Beispiel #11
0
	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
Beispiel #12
0
 def connectionLost(self, reason):
     RCBot.log('Server', "Disconnected")
     IRCClient.connectionLost(self, reason)
Beispiel #13
0
	def connectionLost(self, reason):
		IRCClient.connectionLost(self, reason)
		log.msg("[%s] Connection lost, unregistering." % self.host)
		relayer.unregister(self)
Beispiel #14
0
 def connectionLost(self, reason):
     IRCClient.connectionLost(self, reason)
     print('disconnected')
     reactor.connectTCP(config["host"], config["port"], KittyFactory())
Beispiel #15
0
 def connectionLost(self, reason):
     IRCClient.connectionLost(self, reason)
     self.l.stop() # All done now.
     log.warn("Disconnected from %s" % self.servername)