summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-02-16 20:37:57 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-02-16 20:37:57 +1100
commit626179d553b6ee05c12d35440a9ddf2642dd3e33 (patch)
tree2e350520c4a1fda119d85d5c31d0bd5b34e6d2af /post.php
parenta655d930d014527f8bc05afdc75d3187b6b14117 (diff)
Fixed the robot for the arrayed config
Diffstat (limited to 'post.php')
-rw-r--r--post.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/post.php b/post.php
index 1f2d879f..8cf5d426 100644
--- a/post.php
+++ b/post.php
@@ -128,9 +128,9 @@
if(!openBoard($post['board']))
error($config['error']['noboard']);
- //if(ROBOT_ENABLE && $board['uri'] == ROBOT_BOARD && ROBOT_MUTE) {
- // checkMute();
- //}
+ if($config['robot_enable'] && $config['robot_mute']) {
+ checkMute();
+ }
//Check if thread exists
if(!$OP && !threadExists($post['thread']))
@@ -265,15 +265,13 @@
$post['thumbheight'] = $thumb['height'];
}
- /*
- if(!($mod && $mod['type'] >= $config['mod']['postunoriginal']) && ROBOT_ENABLE && $board['uri'] == ROBOT_BOARD && checkRobot($post['body_nomarkup'])) {
- if(ROBOT_MUTE) {
+ if(!($mod && $mod['type'] >= $config['mod']['postunoriginal']) && $config['robot_enable'] && checkRobot($post['body_nomarkup'])) {
+ if($config['robot_mute']) {
error(sprintf($config['error']['muted'], mute()));
} else {
error($config['error']['unoriginal']);
}
}
- */
// Remove DIR_* before inserting them into the database.
if($post['has_file']) {