From cf999e4d2f8b8bd04ae908f2988bbba867e5c45e Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 13 Dec 2018 20:12:14 +0100
Subject: [PATCH] Improve plomlombot-irc setup.

---
 all_new_2018/setup_plomlombot.sh               | 1 +
 all_new_2018/user_scripts/plomlombot_daemon.sh | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/all_new_2018/setup_plomlombot.sh b/all_new_2018/setup_plomlombot.sh
index 93e857d..6bfc4d6 100755
--- a/all_new_2018/setup_plomlombot.sh
+++ b/all_new_2018/setup_plomlombot.sh
@@ -23,3 +23,4 @@ chown -R plom:plom "${irclogs_dir}"
 echo "Don't forget to add a file ~/.plomlombot with content such as:"
 echo "gpg_key ${gpg_key}"
 echo "bot: SCREEN_SESSION_NAME BOT_NAME #CHANNEL_NAME IRC_SERVER_NAME"
+echo "# file should end in newline or non-interpreted line such as this"
diff --git a/all_new_2018/user_scripts/plomlombot_daemon.sh b/all_new_2018/user_scripts/plomlombot_daemon.sh
index b7d0709..dcac4f6 100755
--- a/all_new_2018/user_scripts/plomlombot_daemon.sh
+++ b/all_new_2018/user_scripts/plomlombot_daemon.sh
@@ -35,7 +35,7 @@ while true; do
                 if [ "${first_char}" = "#" ]; then
                     shortened_channel_name=$(echo -n "${channel_name}" | cut -c2-)
                 fi
-    	        ln -sf "${logs_dir}" "${irclogs_dir}/${shortened_channel_name}"
+                ln -sfn "${logs_dir}" "${irclogs_dir}/${shortened_channel_name}"
 
     	    # If "key:" line, encrypt old raw logs to that GPG key.
     	    elif [ "${first_word}" = "gpg_key": ]; then
-- 
2.30.2