#!/bin/bash
# Wrapper for TinyIRC on DSL by J.P. Nimmo a.k.a. SaidinUnleashed

. /etc/init.d/dsl-functions

server=

while [ -z "$server" ]
do

echo "Enter the name of the server you want to connect to (e.g. ${GREEN}irc.freenode.net${NORMAL}): "
read server

if [ -z "$server" ]
then
	echo "${RED}You must enter a servername!${NORMAL}"
fi
done

echo "${YELLOW}You will have to set the username with the ${GREEN}/nick <username>"
echo "${YELLOW} command after we connect.${NORMAL}"

/opt/tinyirc/tinyirc $username $server
