PDA

View Full Version : Disable PM on Infractions?


findingpeace
05-14-2013, 08:16 PM
Hi everyone,

I need a way to turn off the automatic PM when an infraction is given. There is one setting: Require Infraction Message, but even with this disabled, it sends out a default message.

We need "silent" mode. No message whatsoever.

Is this possible?

Thanks!

--------------- Added 1368640428 at 1368640428 ---------------

I always try to update my posts if I find an answer, just in case someone else is searching for the same thing.

Open up infractions.php

Find the line with:

$pmdm->set_recipients

Change the whole line to read:

$pmdm->set_recipients(unhtmlspecialchars('THROWAWAYACCOUN T'), $permissions);

Make a throwaway account on your forum, and replace THROWAWAYACCOUNT (above) with the username. For example, mine is:

$pmdm->set_recipients(unhtmlspecialchars('InfractionPMs') , $permissions);

It's not the greatest solution in the world, but it works fine.