Skip to content

Commit f66dbe6

Browse files
authored
Update bot.php
1 parent c0a586c commit f66dbe6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

bot.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,10 +1451,10 @@
14511451
" . ($botState['configLinkState'] != "off"?"
14521452
💝 config : <code>$vray_link</code>":"");
14531453

1454-
"🔋 Volume web: <code> $botUrl"."search.php?id=".$uniqid."</code>";
1454+
if($botState['subLinkState'] == "on") $acc_text .= "
14551455
1456+
🔋 Volume web: <code> $botUrl"."search.php?id=".$uniqid."</code>
14561457
1457-
if($botState['subLinkState'] == "on") $acc_text .= "
14581458
14591459
🌐 subscription : <code>$subLink</code>
14601460
@@ -1999,6 +1999,11 @@
19991999
sendMessage(" عدد اعشاری مجاز نیست");
20002000
exit();
20012001
}
2002+
elseif(substr($text, 0, 1) == '0'){
2003+
sendMessage("❌عدد وارد شده نمیتواند با 0 شروع شود!");
2004+
exit();
2005+
}
2006+
20022007
$id = $match[1];
20032008
$price = $botState['dayPrice'];
20042009
if($userInfo['temp'] == "agentBuy" && $userInfo['is_agent'] == true) $price -= ($price * $userInfo['discount_percent'] / 100);
@@ -2019,6 +2024,11 @@
20192024
sendMessage("عدد اعشاری مجاز نیست");
20202025
exit();
20212026
}
2027+
elseif(substr($text, 0, 1) == '0'){
2028+
sendMessage("❌عدد وارد شده نمیتواند با 0 شروع شود!");
2029+
exit();
2030+
}
2031+
20222032
sendMessage($mainValues['customer_custome_plan_name']);
20232033
setUser("enterCustomPlanName" . $match[1] . "_" . $match[2] . "_" . $match[3] . "_" . $text);
20242034
}

0 commit comments

Comments
 (0)