diff bin/mailcluecheck @ 1:4d6502ffaa5e

Initial revision
author darius
date Sat, 06 Dec 1997 04:36:59 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mailcluecheck	Sat Dec 06 04:36:59 1997 +0000
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Called when a player is ejected. (If the MAIL_CLUELETTER option is set
+# in config.h)
+#
+
+EJECTLETTER="lib/eject.letter"
+HOST=`hostname`
+echo $1@$2 >> ${NETREKDIR}/logs/eject.log
+mailx -s'You were ejected from Netrek at ${HOST}' $1@$2 < ${NETREKDIR}/${EJECTLETTER}