bug fix
This commit is contained in:
parent
fd891d61fe
commit
00acc6fcb8
@ -5,6 +5,9 @@ from socket import socket
|
||||
from configparser import ConfigParser
|
||||
from time import sleep
|
||||
from threading import Thread
|
||||
from os import chdir, path
|
||||
|
||||
chdir(path.dirname(path.abspath(__file__)))
|
||||
config = ConfigParser()
|
||||
# Defaults
|
||||
config['Global'] = {'check_delay': '5 * 60', # every 5 min
|
||||
@ -38,7 +41,7 @@ irc.connect(config['Global']['IRC_host'], int(config['Global']['IRC_port']), con
|
||||
irc.add_global_handler("welcome", on_connect)
|
||||
irc.add_global_handler("join", on_join)
|
||||
irc.add_global_handler('disconnect', on_disconnect)
|
||||
Thread(target=reactor.process_forever).start()
|
||||
Thread(target=reactor.process_forever).start() #start irc client in other thread
|
||||
##
|
||||
hosts = config._sections
|
||||
check_delay = eval(config['Global']['check_delay'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user