Browse Source

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

Helge Jung 10 years ago
parent
commit
58553fe9e7
1 changed files with 2 additions and 2 deletions
  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)