From 27942fc7dfadcc26b4fff15974af2b0faa675730 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 26 Jun 2020 21:11:06 +0200
Subject: [PATCH] Accomodate plomlombot start-up argument changes.

---
 buster/other_files/plomlombot_daemon.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/buster/other_files/plomlombot_daemon.sh b/buster/other_files/plomlombot_daemon.sh
index 7847d25..276c602 100755
--- a/buster/other_files/plomlombot_daemon.sh
+++ b/buster/other_files/plomlombot_daemon.sh
@@ -26,13 +26,14 @@ while true; do
                 server_name=$(echo -n "${line}" | cut -d' ' -f5)
                 login_user=$(echo -n "${line}" | cut -d' ' -f6)
                 login_pw=$(echo -n "${line}" | cut -d' ' -f7)
+                add_option=$(echo -n "${line}" | cut -d' ' -f8-)
                 set +e
                 screen -S "${session_name}" -Q select . > /dev/null
                 start_screen=$?
                 set -e
                 if [ "${start_screen}" -eq "1" ]; then
                     cd ~/plomlombot-irc
-                    LANG="en_US.UTF-8" screen -d -m -S "${session_name}" ./run.sh -r 604800 -n "${bot_name}" -s "${server_name}" "${channel_name}"
+                    LANG="en_US.UTF-8" screen -d -m -S "${session_name}" ./run.sh -r 604800 -n "${bot_name}" -s "${server_name}" -c "${channel_name}" "${add_option}"
                 fi
                 md5_server=$(echo -n "${server_name}" | md5sum | cut -d' ' -f1)
                 md5_channel=$(echo -n "${channel_name}" | md5sum | cut -d' ' -f1)
-- 
2.30.2