have SIGINT handler call modules' shutdown()
This commit is contained in:
parent
63a85fba3f
commit
b748d43bbd
|
@ -225,6 +225,9 @@ class IrcAdmin(Module):
|
|||
|
||||
# SIGINT signal handler
|
||||
def sigint_handler(self, signal, frame):
|
||||
for module in self.modlist:
|
||||
module.shutdown()
|
||||
|
||||
self.save_config()
|
||||
print('saved config')
|
||||
sys.exit()
|
||||
|
|
Loading…
Reference in New Issue