add user destroyed/disabled/enabled event

This commit is contained in:
xiaomlove
2024-03-16 15:26:12 +08:00
parent 38ff708a26
commit 0c594058e9
9 changed files with 186 additions and 5 deletions

View File

@@ -1226,3 +1226,8 @@ function get_snatch_info($torrentId, $userId)
{
return mysql_fetch_assoc(sql_query(sprintf('select * from snatched where torrentid = %s and userid = %s order by id desc limit 1', $torrentId, $userId)));
}
function fire_event(string $name, int $id): void
{
executeCommand("event:fire --name=$name --id=$id", "string", true, false);
}