瀏覽代碼

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

Helge Jung 10 年之前
父節點
當前提交
58553fe9e7
共有 1 個文件被更改,包括 2 次插入2 次删除
  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)