#!/bin/sh
#
# Check if one of bad words is in the file $1
#

BADWORDS=$HOME/config/bad_words
if [ ! -e $BADWORDS ]
then
	exit 0
fi

egrep -qwf $BADWORDS $1
if [ $? = 0 ]
then
	exit 1
else
	exit 0
fi
