Explorar el Código

ffpb: properly check for msg_enable=1 and change default port to 2342

Helge Jung hace 10 años
padre
commit
58553fe9e7
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      modules/ffpb.py

+ 2 - 2
modules/ffpb.py

@@ -46,9 +46,9 @@ class ThreadingTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
 def setup(bot):
 	global msgserver
 
-	if bot.config.has_section('ffpb') and bot.config.ffpb.msg_enable:
+	if bot.config.has_section('ffpb') and bot.config.ffpb.msg_enable == 1:
 		host = "localhost"
-		port = 4342
+		port = 2342
 		if not bot.config.ffpb.msg_host is None: host = bot.config.ffpb.msg_host
 		if not bot.config.ffpb.msg_port is None: port = int(bot.config.ffpb.msg_port)