Ejemplo n.º 1
0
	def reload(self):
		self.admin_broadcast('Reloading...')
		self.console_write('Reloading...')
		self.rotatelogfile()
		self.parseFiles()
		reload(sys.modules['SayHooks'])
		reload(sys.modules['protocol.AutoDict'])
		reload(sys.modules['protocol.Channel'])
		reload(sys.modules['protocol.Battle'])
		reload(sys.modules['protocol.Protocol'])
		reload(sys.modules['protocol'])
		reload(sys.modules['ChanServ'])
		reload(sys.modules['Client'])
		reload(sys.modules['SQLUsers'])
		self.SayHooks = __import__('SayHooks')
		ip2country.reloaddb()
		thread.start_new_thread(self._rebind_slow, ()) # why should reloading block the thread? :)
Ejemplo n.º 2
0
 def reload(self):
     self.admin_broadcast('Reloading...')
     self.console_write('Reloading...')
     self.rotatelogfile()
     self.parseFiles()
     reload(sys.modules['SayHooks'])
     reload(sys.modules['protocol.AutoDict'])
     reload(sys.modules['protocol.Channel'])
     reload(sys.modules['protocol.Battle'])
     reload(sys.modules['protocol.Protocol'])
     reload(sys.modules['protocol'])
     reload(sys.modules['ChanServ'])
     reload(sys.modules['Client'])
     reload(sys.modules['SQLUsers'])
     self.SayHooks = __import__('SayHooks')
     ip2country.reloaddb()
     thread.start_new_thread(
         self._rebind_slow, ())  # why should reloading block the thread? :)
Ejemplo n.º 3
0
	def reload(self):
		self.admin_broadcast('Reloading...')
		self.console_write('Reloading...')
		self.parseFiles()
		toreload = [
				"SayHooks",
				"ChanServ",
				"BaseClient",
				"SQLUsers",
				"Client",
				"CryptoHandler",
				"protocol.AutoDict",
				"protocol.Channel",
				"protocol.Battle",
				"protocol.Protocol",
				"protocol",
			]	
		for module in toreload:
			reload(sys.modules[module])
		self.SayHooks = __import__('SayHooks')
		ip2country.reloaddb()
		self._rebind_slow()
Ejemplo n.º 4
0
 def reload(self):
     self.admin_broadcast('Reloading...')
     self.console_write('Reloading...')
     self.parseFiles()
     toreload = [
         "SayHooks",
         "ChanServ",
         "BaseClient",
         "SQLUsers",
         "Client",
         "CryptoHandler",
         "protocol.AutoDict",
         "protocol.Channel",
         "protocol.Battle",
         "protocol.Protocol",
         "protocol",
     ]
     for module in toreload:
         reload(sys.modules[module])
     self.SayHooks = __import__('SayHooks')
     ip2country.reloaddb()
     self._rebind_slow()
Ejemplo n.º 5
0
 def reload(self):
     self.parseFiles()
     ip2country.reloaddb()
Ejemplo n.º 6
0
	def reload(self):
		self.parseFiles()
		ip2country.reloaddb()
Ejemplo n.º 7
0
	def reload(self):
		self.admin_broadcast('Reloading...')
		self.console_write('Reloading...')
		self.parseFiles()
		ip2country.reloaddb()