aboutsummaryrefslogtreecommitdiff
path: root/src/IRCBot.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-17 11:35:45 +0100
committerGravatar jesopo2019-06-17 11:35:45 +0100
commitec733e200c70f111bb5baeec01c5d9e444852709 (patch)
treee71091e9deac1df4f1519cc9e3313d388346af81 /src/IRCBot.py
parentShow what the given context was when it's unknown (diff)
signature
Default IRCBot.running to false, set to true at the top of .run()
Diffstat (limited to 'src/IRCBot.py')
-rw-r--r--src/IRCBot.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/IRCBot.py b/src/IRCBot.py
index 5fac86c7..1eb7908b 100644
--- a/src/IRCBot.py
+++ b/src/IRCBot.py
@@ -37,7 +37,7 @@ class Bot(object):
self._timers = timers
self.start_time = time.time()
- self.running = True
+ self.running = False
self.servers = {}
self._event_queue = queue.Queue() # type: typing.Queue[TriggerEvent]
@@ -255,6 +255,7 @@ class Bot(object):
return thread
def run(self):
+ self.running = True
self._read_thread = self._daemon_thread(
lambda: self._loop_catch("read", self._read_loop))
self._write_thread = self._daemon_thread(