aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 5c926644..59aa1d40 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -478,6 +478,12 @@ namespace slskd
return Task.FromException(new DownloadEnqueueException($"File not shared."));
}
+ // todo: determine the user's group
+ // todo: get limit config for that group
+ // todo: if limits have been set, retrieve all of the user's transfers for the last week, including those currently in the queue
+ // todo: determine if any of the configured limits have been met or exceeded
+ // todo: if limits met or exceeded, return Task.FromException(new DownloadEnqueueException($"Limit(s) exceeded.");
+
return Transfers.Uploads.EnqueueAsync(username, filename);
}