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)