Browse Source

Print cached messages before bot shutdown.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 9 years ago
parent
commit
b3ebdaffeb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      modules/ffpb.py

+ 4 - 1
modules/ffpb.py

@@ -1,4 +1,4 @@
-# -*- coding: utf-8 -*-
+ -*- coding: utf-8 -*-
 from __future__ import print_function
 import willie
 
@@ -163,6 +163,9 @@ def setup(bot):
 def shutdown(bot):
     global msgserver, nodeaccess
 
+    # Print cached message before shutdown, if any
+    bot.ffpb_print_cached_messages ()
+
     # store node acl
     if not nodeaccess is None:
         nodeaccess.sync()