checkpasswd.py game-$GAME/passwd $FACTION$PASSWD|| reply "Das Passwort fuer die Partei $FACTION ist ungueltig"
cd$ERESSEA/game-$GAME/reports
if[ ! -e ${FACTION}.sh ];then
echo"Der Report für Partei $FACTION kann wegen technischer Probleme leider nicht nachgefordert werden: No such file ${FACTION}.sh"\
| mutt -s "Reportnachforderung Partei ${FACTION}"$EMAIL
exit
fi
source${FACTION}.sh $EMAIL|| reply "Unbekannte Partei $FACTION"
if[ -e $ERESSEA/game-$GAME/eressea.db ];then
SQL="select email from faction f left join faction_data fd on fd.faction_id=f.id where f.game_id=$GAME AND fd.code='$FACTION' and fd.turn=(select max(turn) from faction_data fx where fx.faction_id=f.id)"