From 020bfb190cfa6c6b13acfa810f47146857f7ff57 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 20 Dec 2018 00:12:35 +0100
Subject: [PATCH] Fix plomlombot_daemon script.

---
 all_new_2018/user_files/plomlombot_daemon.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/all_new_2018/user_files/plomlombot_daemon.sh b/all_new_2018/user_files/plomlombot_daemon.sh
index a74c24b..5cf1f6a 100755
--- a/all_new_2018/user_files/plomlombot_daemon.sh
+++ b/all_new_2018/user_files/plomlombot_daemon.sh
@@ -41,8 +41,8 @@ while true; do
                 ln -sfn "${logs_dir}" "${irclogs_dir}/${shortened_channel_name}"
                 echo "${login_user}":'{PLAIN}'"${login_pw}" > "${irclogs_pw_dir}/${shortened_channel_name}"
 
-            # If "key:" line, encrypt old raw logs to that GPG key.
-            elif [ "${first_word}" = "gpg_key": ]; then
+            # If "gpg" line, encrypt old raw logs to that GPG key.
+            elif [ "${first_word}" = "gpg_key" ]; then
                 key=$(echo -n "${line}" | cut -d' ' -f2)
                 mkdir -p ~/plomlombot_db
                 cd ~/plomlombot_db
-- 
2.30.2