Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorsomebodywashere <68244480+somebodywashere@users.noreply.github.com>2024-03-21 09:51:12 +0300
committerGitHub <noreply@github.com>2024-03-21 09:51:12 +0300
commit43ec88bb2485b1370337d7a187d5479dc8997629 (patch)
treeef010c2785e312bd79c22cb246aa9699dadb0c22 /web
parentc5b30d6c6c5640618512f219f7db2186afbb7b7b (diff)
Small fixes (#2106)
Diffstat (limited to 'web')
-rw-r--r--web/service/tgbot.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/service/tgbot.go b/web/service/tgbot.go
index d534f3ac..7afa61e3 100644
--- a/web/service/tgbot.go
+++ b/web/service/tgbot.go
@@ -1469,7 +1469,7 @@ func (t *Tgbot) notifyExhausted() {
var disabledClients []xray.ClientTraffic
var exhaustedClients []xray.ClientTraffic
traffics, err := t.inboundService.GetClientTrafficTgBot(client.TgID)
- if err == nil {
+ if err == nil && len(traffics) > 0 {
output := t.I18nBot("tgbot.messages.exhaustedCount", "Type=="+t.I18nBot("tgbot.clients"))
for _, traffic := range traffics {
if traffic.Enable {