PDA

View Full Version : I want to share my autoban code


random1231231231
04-11-2012, 12:55 AM
Removed

SEOvB
04-11-2012, 06:22 PM
Cool stuff, thanks! If you added it in the mods section, it may be easier for people to find.

-Nick, SEOvB Developer

Boofo
04-12-2012, 03:57 AM
A better idea would be to have it send a PM to the admin (or set userid) when a magic word appears in a post. That way it can be investigated as the magic word in the post might not be in the same context as you would think it should be.

akanevsky
06-08-2012, 11:42 AM
I agree with Boofo, and also I think that it might be a better idea to run this on post (if the post is not moderated). That way, the function won't run on every single post every single time, as you have it now. So just move it to a different hook with slight modifications, I guess.

In addition, it might be nice to switch the two conditions in the outer if statement, because checking for whether a usergroup is in a list of two items is a lot faster than checking for a word in a long post.