READ THE RULES
0 Members and 1 Guest are viewing this topic.
--// ------------------------------------------------------------// General CIDR Correction (like 127.000.0.01/0021 to 127.0.0.1/21)tFunctions.CIDR_Correction = function(sCIDR) local _,_,a,b,c,d,CIDRPrefix = string.find(sCIDR, "^(%d+)%.(%d+)%.(%d+)%.(%d+)/(%d+)$") if a and b and c and d and CIDRPrefix then if a ~= tonumber(a) or b ~= tonumber(b) or c ~= tonumber(c) or d ~= tonumber(d) or CIDRPrefix ~= tonumber(CIDRPrefix) then sIP = tonumber(a).."."..tonumber(b).."."..tonumber(c).."."..tonumber(d) end return sCIDR else OnError("\'"..sCIDR.."\' can not be corrected to form a CIDR!") endend--// ----------------------------------------------------------
sIP = tonumber(a).."."..tonumber(b).."."..tonumber(c).."."..tonumber(d).."/"..tonumber(CIDRPrefix)
[12:08:01] <•MESSIAH•> Scanning registered users database and updating the database if nessesery![12:08:01] The px WSA files could not be found, copy them from the PxWSA folder inclued in this scriptThe files should in the folder specified in the WSAPath option in config
I keep gettin this errorCode: [Select][12:08:01] <•MESSIAH•> Scanning registered users database and updating the database if nessesery![12:08:01] The px WSA files could not be found, copy them from the PxWSA folder inclued in this scriptThe files should in the folder specified in the WSAPath option in config even tho i've done what it says. Plus there's a typo "necessary" not "nessesery"
[13:21:25] <-SanitariuM-> ================================================================================ *Current Configuration* ( for *UserBekcisi v.1.00.RC1.b005* ) ---------------------------------------------------------------------------------------------------------------------------------------------------------------- • Bot Name : -SanitariuM- • Menu Title : -SanitariuM- • Hub Owner Name : Psycho_Chihuahua • Bot Reply Environment : PM • Default Last X Times : 10 • Database Clean Interval (in weeks) : 4 • Exact Time Format : %d.%m.%Y - %X • Date Format : %d.%m.%Y • Command Spy : Enabled • Performance Debugging : Disabled • Setting Commands : Enabled • PxWSA Library Usage : Enabled • Device Usage (for database access) : CPU (more than RAM) • ISP Queries : Enabled • DNS Queries : Enabled • High Amount of IP Queries : Enabled • Range Access Control : Disabled • Range Control Role : Block • Range Control Applies To : Marked ISPs ---------------------------------------------------------------------------------------------------------------------------------------------------------------- *Current Statistics* ---------------------------------------------------------------------------------------------------------------------------------------------------------------- • PtokaX Version : 0.3.4.0 • Online Users : 5 • Stats Exec Time : 0.0160 seconds • Database Size : 1620 bytes • Total Entries : 16 • Memory Usage : 291 / 488 KiB ================================================================================
Plus there's a typo "necessary" not "nessesery"
Hi GeceBeckcisi...I like your script but i isn't this function wrong???Code: [Select]--// ------------------------------------------------------------// General CIDR Correction (like 127.000.0.01/0021 to 127.0.0.1/21)tFunctions.CIDR_Correction = function(sCIDR) local _,_,a,b,c,d,CIDRPrefix = string.find(sCIDR, "^(%d+)%.(%d+)%.(%d+)%.(%d+)/(%d+)$") if a and b and c and d and CIDRPrefix then if a ~= tonumber(a) or b ~= tonumber(b) or c ~= tonumber(c) or d ~= tonumber(d) or CIDRPrefix ~= tonumber(CIDRPrefix) then sIP = tonumber(a).."."..tonumber(b).."."..tonumber(c).."."..tonumber(d) end return sCIDR else OnError("\'"..sCIDR.."\' can not be corrected to form a CIDR!") endend--// ----------------------------------------------------------Because you created sIP but didnt return it...u returned sCIDR and correcting sIP wouldn't be something like this?Code: [Select]sIP = tonumber(a).."."..tonumber(b).."."..tonumber(c).."."..tonumber(d).."/"..tonumber(CIDRPrefix) Cheers
-- User Commands Menu sMenu = frmHub:GetHubName(),
-- User Commands Menu sMenu = "[Ã] UserBekcisi",
My apologies, thanx 4 the help Also I have this question which is probably simple too. I wanna change the right-clicker menu name. I checked the script and replaced Code: [Select]-- User Commands Menu sMenu = frmHub:GetHubName(), with Code: [Select]-- User Commands Menu sMenu = "[Ã] UserBekcisi", but it's still using the hub bot name
UserBekcisi/Functions.lua:1677: attempt to perform arithmetic on global `iEntries' (a nil value)
Thanks for the report. Will be corrected in b007 as well as some more.
And what about user info checking (check user's info against forbidden words and sharesizes etc) ? Shall I add it?
• PtokaX Version : 0.3.4.0i0• Online Users : 1433 • Hub Uptime : 14 hours, 2 minutes, 53 seconds • Script Uptime : 14 hours, 38 minutes, 14 seconds • Database Size : 28153277 bytes • Total Entries : 295389 • Stats Exec Time : 3.0150 seconds • Memory Usage : 91703 / 171951 KiB
Code: [Select]• PtokaX Version : 0.3.4.0i0• Hub Uptime : 14 hours, 2 minutes, 53 seconds • Script Uptime : 14 hours, 38 minutes, 14 seconds
• PtokaX Version : 0.3.4.0i0• Hub Uptime : 14 hours, 2 minutes, 53 seconds • Script Uptime : 14 hours, 38 minutes, 14 seconds