Fix the checking of conditions in order to execute commands.
The author is checked the ability to manage messages before it can do pin and save commands.
Add files from pridepack.