#!/bin/sh

PERL=/usr/bin/perl

if test -z "$SIRCSERVER" && test -z "$IRCSERVER"
then
SIRCSERVER="irc.ef.net"
export SIRCSERVER
fi

case "$1" in
  -d) shift
      exec ${PERL} /usr/local/bin/dsirc "$@"
      ;;
  *)  eval exec /usr/local/bin/ssfe $SSFE ${PERL} /usr/local/bin/dsirc \"\$@\"
esac
