Немножко допричесал модерацию, с которой теперь можно иметь дело.

This commit is contained in:
lopar
2021-02-01 22:53:28 +02:00
parent 0ccc2d1af5
commit 8442eb4e7b
7 changed files with 65 additions and 854 deletions
+6
View File
@@ -77,4 +77,10 @@ class Moderation
{
DBPDO::INIT()->execute('INSERT INTO chat (user_id,msg,type) VALUES (-1,?,?)', [$message, 'sys']);
}
public static function addUserCheck(int $target): bool
{
self::addEffectStatusToUserLog($target, UserEffects::$effectName[20]);
return User::setUserEffect($target, 20, UserEffects::$effectName[20], strtotime('3days'));
}
}