mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
쪽지 발송 시 스팸필터가 작동하도록 개선
- communication.sendMessage 트리거 추가 - 쪽지 발송 차단 시 메시지 추가
This commit is contained in:
parent
a5f408e05f
commit
6d8137bfc9
5 changed files with 76 additions and 4 deletions
|
|
@ -97,7 +97,7 @@ class spamfilterModel extends spamfilter
|
|||
/**
|
||||
* @brief Check the specified time
|
||||
*/
|
||||
function checkLimited()
|
||||
function checkLimited($isMessage = FALSE)
|
||||
{
|
||||
$config = $this->getConfig();
|
||||
|
||||
|
|
@ -118,7 +118,14 @@ class spamfilterModel extends spamfilter
|
|||
// If the number of limited posts is not reached, keep creating.
|
||||
if($count)
|
||||
{
|
||||
$message = sprintf(Context::getLang('msg_alert_limited_by_config'), $interval);
|
||||
if($isMessage)
|
||||
{
|
||||
$message = sprintf(Context::getLang('msg_alert_limited_by_config'), $interval);
|
||||
}
|
||||
else
|
||||
{
|
||||
$message = sprintf(Context::getLang('msg_alert_limited_message_by_config'), $interval);
|
||||
}
|
||||
|
||||
$oSpamFilterController = &getController('spamfilter');
|
||||
$oSpamFilterController->insertLog();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue