diff options
| author | 2018-08-31 10:50:37 +0100 | |
|---|---|---|
| committer | 2018-08-31 10:50:37 +0100 | |
| commit | abed9cf4ea71dcbad2dd2c049683b8d14b942e09 (patch) | |
| tree | 3e40caf63fa7e1500469f4ad9a0c45c51808aad4 /modules/signals.py | |
| parent | Fix a copy paste fail in IRCLineHandler that caused PARTs to be handled as QUITs (diff) | |
| signature | ||
Reformat
Diffstat (limited to 'modules/signals.py')
| -rw-r--r-- | modules/signals.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/signals.py b/modules/signals.py index 3ab6966a..0209a825 100644 --- a/modules/signals.py +++ b/modules/signals.py @@ -1,5 +1,6 @@ import signal + class Module(object): def __init__(self, bot): self.bot = bot @@ -8,13 +9,14 @@ class Module(object): def SIGINT(self, signum, frame): print() - self.bot.events.on("signal").on("interrupt").call(signum=signum, frame=frame) + self.bot.events.on("signal").on("interrupt").call(signum=signum, + frame=frame) for server in self.bot.servers.values(): reason = "Leaving" if server.get_setting("quit-quote", True): reason = self.bot.events.on("get.quit-quote" - ).call_for_result(default="Leaving") + ).call_for_result(default="Leaving") server.send_quit(reason) self.bot.register_write(server) |
