From dbd33537ffac07005111582d2b1e57fdb89e686a Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 5 Feb 2016 11:20:28 +0100
Subject: [PATCH] Fix bug overwriting all but last twts.

---
 plomlombot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plomlombot.py b/plomlombot.py
index b95bb42..0dd9823 100755
--- a/plomlombot.py
+++ b/plomlombot.py
@@ -246,7 +246,7 @@ def handle_command(command, argument, notice, target, session):
     def twt():
         def try_open(mode):
             try:
-                twtfile = open(session.twtfile, "w")
+                twtfile = open(session.twtfile, mode)
             except (PermissionError, FileNotFoundError) as err:
                 notice("CAN'T ACCESS OR CREATE TWT FILE: " + str(err))
                 return None
-- 
2.30.2