From 349b61f34c83740f8266ef07620158cdf939bb46 Mon Sep 17 00:00:00 2001 From: clsr Date: Mon, 13 Jun 2022 21:25:03 +0000 Subject: Add password support --- ircbot.bash | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ircbot.bash') diff --git a/ircbot.bash b/ircbot.bash index b6701c0..646c4da 100755 --- a/ircbot.bash +++ b/ircbot.bash @@ -77,6 +77,11 @@ connect() { return $? fi + if [[ -n "$IRCBOT_PASS" ]]; then + if ! sendmsg PASS "$IRCBOT_PASS"; then + return $? + fi + fi if ! sendmsg NICK "$IRCBOT_NICK"; then return $? fi -- cgit