summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/post.php b/post.php
index 590be24a..e303abf6 100644
--- a/post.php
+++ b/post.php
@@ -347,6 +347,9 @@
} elseif($condition == 'body') {
if(preg_match($value, $post['body_nomarkup']))
continue;
+ } elseif($condition == 'ip') {
+ if(preg_match($value, $_SERVER['REMOTE_ADDR']))
+ continue;
} elseif($condition == 'OP') {
// Am I OP?
if($value == $OP)