#!/bin/sh -e

if [ "$1" = "purge" ]; then
  if [ -d "/var/log/ircd" ]; then
      rm -rf /var/log/ircd/*
      rmdir --ignore-fail-on-non-empty /var/log/ircd
    fi
fi

if [ "$1" = "purge" ]; then
  if [ -d "/var/run/ircd" ]; then
      rm -rf /var/run/ircd/*
      rmdir --ignore-fail-on-non-empty /var/run/ircd
    fi
fi

#DEBHELPER#

exit 0
