Added "whitelist remove" command.

This commit is contained in:
Marcus Whybrow 2012-05-29 05:41:15 +01:00
parent 01739cc5d4
commit bf76cae5f0

10
msm
View File

@ -1598,6 +1598,16 @@ main() {
fi
;;
remove)
if [ -z "$4" ]; then
echo "Invalid command."
else
if server_is_running $id; then
server_eval $id "whitelist remove $4"
echo "Removed \"$4\" from the whitelist."
else
echo "Server \"${server_name[$id]}\" is not running."
fi
fi
;;
list)
if server_is_running $id; then