summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rwxr-xr-xsrc/bin/anoperc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/anoperc b/src/bin/anoperc
index bc0704f12..0f3900f52 100755
--- a/src/bin/anoperc
+++ b/src/bin/anoperc
@@ -47,6 +47,13 @@ if [ ! -f $ANOPEBIN$ANOPROG ] ; then
exit 1
fi
+if [ "$UID" = "0" ] ; then
+ echo "**********************************";
+ echo "Warning: Do not run anope as root!";
+ echo "**********************************";
+ exit 1
+fi
+
if [ "$1" = "start" ] ; then
if [ -f $ANOPEBIN$PIDFILE ] ; then