All scriptors,
The one thing I loved about NMDC was the script made by Gadget: General Bot. The main feature that was REALLY useful was the USERINFO cmd. I have searched through forums and websites, but haven't found a "USERINFO" cmd script. I know with PtokaX there is a built in userdb, but all it keep tracks of is the IP and log in/out times. I mean with GeneralBot the userinfo cmd gave this:
Userinfo of [sunet]pinger since Tue 7.1.2003 20:18:15
Connected: No
Operator: No
VIP user: No
Description: Youve been pinged, BAM!
E-mail: http://dreamland.gotdns.org/PublicHubList.config
IP: 130.243.79.250
IP space: Static
Shared: 101.999999999069 GB (109521666047 bytes)
Connection: LAN(T3)
Mode: N/A
Status:
Client version: Fake, Modified DC++ or Linux version
Open hubs: 1 (at least, probably more)
Open slots: N/A
Upload limit: No limit
Search results: 0
Last logon: Wed 8.1.2003 11:21:29
First logon: Tue 7.1.2003 20:53:27
Last activity: Wed 8.1.2003 11:21:29 (successful logon)
Successful logons: 36
Failed logons: 0
Last fail reason: No failed logons
Kicked: 0 times
Last kicked: Not kicked
Banned: No
Last banned: N/A
On logon watcher:
On logon message:
And I would like to see if any scriptor is able to work this out and get the userdb or an additional script made that is able to do this... Please I know all OPs and Hub Owners would appreciate this!
Thanks in Advance
Hia :))
I agree with you mrdesai83, the userinfo ya mention above is the best ive seen. The closest i have found is
"logger-v.2.57" from C H I L L E R
--> look at this tread (http://board.univ-angers.fr/thread.php?threadid=52&boardid=8&sid=c65573a3b76945a353946c4f88ce61ec) <--
Z ya
Agree, that one was great. We used Generalbot before we changed to Ptokax, would be really nice to get both offline and online info like that.
Roy
I use this one...
Bot = "Hub-Security"
function Main()
frmHub:RegBot(Bot)
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=="~info" or cmd=="~info" ) 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
hmm, servaks ever tried to send an emtpy string to main chat by typing strg+return return you should get an error.
anyway the gerneral bot has some stuff mine doesn't like kick info log and so on, might implement it.
but all this is in my script as well
Connected: No
Operator: No
VIP user: No
Description: Youve been pinged, BAM!
E-mail: http://dreamland.gotdns.org/PublicHubList.config
IP: 130.243.79.250
IP space: Static
Shared: 101.999999999069 GB (109521666047 bytes)
Connection: LAN(T3)
Mode: N/A
Status:
Client version: Fake, Modified DC++ or Linux version
Open hubs: 1 (at least, probably more)
Open slots: N/A
Upload limit: No limit
Search results: 0
only that I leave the myinfosting as it is.
eeeeehm servaks, why did you remove the top of the script???
i don't mind that you use it and post it here, but i do mind that you stripped lallo82 and my nick from it.
chilla i know about that bug, it's fixed allready but should strip the fixed version from a.i.
plop