summaryrefslogtreecommitdiff
path: root/shbirth.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shbirth.sh')
-rwxr-xr-xshbirth.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/shbirth.sh b/shbirth.sh
index 2d31a9c..b58c227 100755
--- a/shbirth.sh
+++ b/shbirth.sh
@@ -4,13 +4,14 @@ SERVER=${1:-kro.corp}
#SERVER=${1:-localhost}
PORT=6667
export NICK=shbot
-export CHANNELS=${2:-#codemore}
-export CHANNEL2=${2:-#shbot}
+export CHANNELS=('#codemore #shbot')
function shbirth ()
{
echo "NICK $NICK"
echo "USER $(whoami) +iw $NICK :$0"
- #echo "JOIN $CHANNEL"
- echo "JOIN $CHANNEL2"
+ for CHANNEL in $CHANNELS
+ do
+ echo "JOIN $CHANNEL"
+ done
}