Skip to content

Commit 5148551

Browse files
authored
Merge pull request #1012 from YuriiRadio/patch-4
dingdong fix
2 parents 0c5c82c + d3f337d commit 5148551

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/messages.class.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function say($ph, $level = 0, $member_id = 0, $source = '')
176176

177177
if (!defined('SETTINGS_SPEAK_SIGNAL') || SETTINGS_SPEAK_SIGNAL == '1') {
178178
if ($level >= (int)getGlobal('minMsgLevel') && !$member_id) { // && !$ignoreVoice
179-
$passed = time() - (int)getGlobal('lastSayTime');
179+
$passed = time() - $last_say_time;
180180
if ($passed > 20) {
181181
playSound('dingdong', 1, $level);
182182
}
@@ -198,5 +198,3 @@ function ask($prompt, $target = '')
198198
{
199199
processSubscriptionsSafe('ASK', array('prompt' => $prompt, 'message' => $prompt, 'target' => $target, 'destination' => $target));
200200
}
201-
202-

0 commit comments

Comments
 (0)