The users database seems to have stopped collecting data :( . What script controls this feature? and how do i re-activate it.
RdB
please provide a bit more info on what scripts you,re using.
if we have to find out wich script this belong to it is gonna be a wild goosehunt
I believe it is an inbuilt feature into ptokax but am not sure as to how to activate it. There is a file called "users.ldb" in the root directory where ptokax.exe is situated.
hmmm
i,m not sure of this :
I believe it is an inbuilt feature into ptokax but am not sure as to how to activate it. There is a file called "users.ldb" in the root directory where ptokax.exe is situated.
a: wich version of pkotax are you using?
B: wich scripts are you running?
as to my knowledge there shouldnt be a file users.ldb in the rootdir but than again i could be wrong.
I am using Ptokax 0.3.2.6 TestDrive 4. Also using Channel_Bot.v4.3c.
May i ask, what is the clear user statistic option on ptokax under Advanced options and the enable user-statistics check box for?
Also im using User-info script which.
-- user info script by lallo82
-- functions by plop (great work)
Bot = "HouseBot"
function Main()
end
function DataArrival(user, data)
if( strsub(data, 1, 1) == "<" ) then
-- remove end pipe
data=strsub(data,1,strlen(data)-1)
-- parse the command
s,e,cmd = strfind( data, "%b<>%s+(%S+)" )
if (user.bOperator) then
if (cmd=="+userinfo" or cmd=="+whois" ) then
UserInfo(user, data)
return 1
end
end
end
end
function GetArgML(data)
s,e,cmd,arg = strfind(data, "%b<>%s+(%S+)%s+(%S+)%s*")
return arg
end
function UserInfo(user, data)
who=GetArgML(data)
local usr = GetItemByName(who)
user:SendPM(Bot, "here is the info from: "..who.." |")
-- now whe know the user lets extract the info
-- ip of the user
user:SendPM(Bot, "ip: "..usr.sIP.." |")
-- client type and version
if (strfind(usr.sMyInfoString,"_,b, dcgui = strfind(usr.sMyInfoString,"V:0.(%x+.%x+)")
user:SendPM(Bot, "DCgui version: 0."..dcgui.." |")
elseif (strfind(usr.sMyInfoString,"<+")) then
if strfind(usr.sMyInfoString,"clienttype = "oDC"
elseif strfind(usr.sMyInfoString,"V:0.%x+%a") then
clienttype = "czdc++"
elseif strfind(usr.sMyInfoString,"L:") or strfind(usr.sMyInfoString,"B:") then
clienttype = "bcdc++"
else
clienttype = "dc++"
end
_,b, dcver = strfind(usr.sMyInfoString,"V:0.(%x+)")
user:SendPM(Bot, clienttype.." client |")
user:SendPM(Bot, "version: 0."..dcver.." |")
end
-- active or pasive
if strfind(usr.sMyInfoString,"M:A") then
mode = "active"
else
mode = "pasive"
end
user:SendPM(Bot, mode.." mode |")
-- hub info
_,b, guest = strfind(usr.sMyInfoString,"H:(%x+)/")
if guest == nil then
_,b, hubs = strfind(usr.sMyInfoString,"H:(%x+)")
user:SendPM(Bot, hubs.." - hub(s) |")
else
_,b, regged = strfind(usr.sMyInfoString,"H:%x+/(%x+)/")
_,b, opped = strfind(usr.sMyInfoString,"H:%x+/%x+/(%x+)")
user:SendPM(Bot, guest.." - hub(s) as regular user |")
user:SendPM(Bot, regged.." - hub(s) as registered user |")
user:SendPM(Bot, opped.." - hub(s) as operator |")
end
-- slot info
_,b, slots = strfind(usr.sMyInfoString,"S:(%x+)")
user:SendPM(Bot, slots.." - slot(s) |")
-- bandwidth upload limiter
if strfind(usr.sMyInfoString,"L:") or strfind(usr.sMyInfoString,"B:") then
_,b, limiter = strfind(usr.sMyInfoString,"B:(%x+)")
if limiter == nil then
_,b, limiter = strfind(usr.sMyInfoString,"L:(%x+)")
if limiter == nil then
_,b, limiter = strfind(usr.sMyInfoString,"U:(%x+)")
if limiter == nil or limiter == "*" then
limiter = "not limited"
end
end
end
if tonumber(limiter) ~= nil then
if strlen(limiter) > 4 then
limiter = limiter / 1024
end
end
user:SendPM(Bot, "upload limited: "..limiter.." Kb/s |")
end
-- bandwidth download limiter
_,b, dlimiter = strfind(usr.sMyInfoString,"D:(%x+)")
if dlimiter ~= nil then
user:SendPM(Bot, "download limited: "..dlimiter.." Kb/s |")
end
end
yes there shud, ok goto advanced tab on ptokax and enable user statistics ;-)
u might want to del the old db
That is enabled - but i didnt delete the old one - is that the reason its not working? b'cos if not id rather not restart my hub for no reason.
have a look at this thread (http://board.univ-angers.fr/thread.php?threadid=879&boardid=2&styleid=1&sid=6aa40fabc83390d57f2992a69220f767)
QuoteOriginally posted by RDB
That is enabled - but i didnt delete the old one - is that the reason its not working? b'cos if not id rather not restart my hub for no reason.
did you enable it while the hub was running??
if so you gotta disable it again, close ptokax, start it up, enable the database, and then start serving.
you can't enable it on a running hub.
plop