diff options
Diffstat (limited to 'modules/log.py')
-rw-r--r-- | modules/log.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/log.py b/modules/log.py index 3280d27..f97ad90 100644 --- a/modules/log.py +++ b/modules/log.py @@ -8,3 +8,4 @@ class Module(ModuleBase): def groupchat(self, room, message_from, message_body, reply): cursor = self.db.cursor() cursor.execute('INSERT INTO log (time, room, nick, text) VALUES (NOW(), %s, %s, %s)', (room, message_from, message_body)) + cursor.close() |