summaryrefslogtreecommitdiff
path: root/inc/functions.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 /inc/functions.php
parenta655d930d014527f8bc05afdc75d3187b6b14117 (diff)
Fixed the robot for the arrayed config
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php
index da24951d..77e1be91 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -533,7 +533,7 @@
global $config;
// Find number of mutes in the past X hours
$query = prepare("SELECT COUNT(*) as `count` FROM `mutes` WHERE `time` >= :time AND `ip` = :ip");
- $query->bindValue(':time', time()-(ROBOT_MUTE_HOUR*3600), PDO::PARAM_INT);
+ $query->bindValue(':time', time()-($config['robot_mute_hour']*3600), PDO::PARAM_INT);
$query->bindValue(':ip', $_SERVER['REMOTE_ADDR']);
$query->execute() or error(db_error($query));
@@ -553,6 +553,8 @@
}
function checkMute() {
+ global $config;
+
$mutetime = muteTime();
if($mutetime > 0) {
// Find last mute time