have SIGINT handler call modules' shutdown()

This commit is contained in:
Brian S. Stephan 2010-12-24 13:46:48 -06:00
parent 63a85fba3f
commit b748d43bbd
1 changed files with 3 additions and 0 deletions

View File

@ -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()