Parcourir la source

ffpb: fix stupid comparison mistake

Helge Jung il y a 10 ans
Parent
commit
63a612c072
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      modules/ffpb.py

+ 1 - 1
modules/ffpb.py

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