Fixes#695, displayed error if another mail client was installed.
Should fix it for any mail server that makes a /usr/bin/mailx file, displaying a nice package check if exim or sendmail (very popular) are installed :)
Simplifying TS3 update checking using "sort" as its best to sort version numbers without the need of removing dots and outputting the file himself.
Magic command is : cat .ts3_version_numbers_unsorted.tmp | sort -r --version-sort -o .ts3_version_numbers_sorted.tmp
Merging logging, counting, and removing logfiles in one place, to avoid some redundant if statements
Also, understanding the code and supporting new logs should be easier.
Adding srcds / sm / ulx / darkrp logs support
Why make it simple when you can make it harder !
> Removing conditional functions for additions, by setting all variables to 0 before starting counting.
> Removing "else, set to 0", as 0 is now the default state
Gamecount should target gamelogdir, not scriptlogdir, as it seems to be for retrocompatibility only, and according to this (line 44) :
if [ "${engine}" == "unreal2" ]||[ "${engine}" == "source" ]; then
find "${gamelogdir}"/ -type f -mtime +${logdays}|tee >> "${scriptlog}"
fi