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