X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=all_new_2018%2Fuser_files%2Fplomlombot_daemon.sh;h=5cf1f6a14bfb23946d67811382fb312e32b62209;hb=428f427cf7adac99766099318302416df51b08fc;hp=a74c24b29f6c79939a8092ae487730f070e956ac;hpb=b20927bac93b8e612be6c66e86c440e4d682bcda;p=config
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