This website works better with JavaScript.
Home
Help
Sign In
ben
/
earwigbot
mirror of
https://github.com/earwig/earwigbot
Watch
1
Star
1
Fork
0
Code
Releases
4
Activity
Browse Source
Fix small bug in shutdown code
tags/v0.1^2
Ben Kurtovic
12 years ago
parent
c3fa92269d
commit
08fb35eefe
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
earwigbot/bot.py
+1
-1
earwigbot/util.py
+ 1
- 1
earwigbot/bot.py
View File
@@ -150,7 +150,7 @@ class Bot(object):
If given, 'msg' will be used as our quit message.
"""
self.logger.info("S
hut
ting
down
bot")
self.logger.info("St
opp
ing bot")
with self.component_lock:
self._stop_irc_components(msg)
self._keep_looping = False
+ 1
- 1
earwigbot/util.py
View File
@@ -70,7 +70,7 @@ def main():
except KeyboardInterrupt:
pass
finally:
if
not
bot._keep_looping: # Indicates bot has already been stopped
if bot._keep_looping: # Indicates bot has
n't
already been stopped
bot.stop()
if __name__ == "__main__":
Write
Preview
Loading…
Cancel
Save