hi ppl is there a way i can mask my ip and all my ops ips any ideas always welcome
QuoteOriginally posted by ((UKSN))Quasimodo
hi ppl is there a way i can mask my ip and all my ops ips any ideas always welcome
strip the IP from P2P and you have nothing left.
plop
block all $Ctm/$RevCtm and $Search (coming from non-OPs) to OPs
i.e. something like
(pseudocode)
function DataArrival( user, data )
if cmd == $ctm/$revctm/$search then
if user != op then
sendToAllButOps( data )
return 1 -- I think return 1 was discard command
else
return -- let the hub handle it
end
end
end
i get a error when i try this. this isSyntax Error: unexpected `$' (pragmas are no longer supported);
last token read: `$' at line 2 in string "function DataArrival( user, data )
..." the error
What Sedulus had posted was not a script but rathre a conceptual approach to a script ...
I slightly adapted it to the PtokaX scripting api ...
here it goes ... but dont take my word for it ... as I havent tested @all...--- hide ops ips ...
--- by Herodes
--- script concept by Sedulus
tThem = {}
function NewUserConnected(user)
if tThem[user.sName] == nil then
tThem[user.sName] = 1
end
end
function Disconnected(user)
if tThem[user.sName] then
Them[user.sName] = nil
end
end
function DataArrival( user, data )
if strsub(data, 1,1) == "$" then
s,e,cmd = strfind(data, "%$(%S+)")
if cmd == "Search" or cmd == "ConnectToMe" or cmd == "RevConnectToMe" then
if not user.bOperator then
for i , v in tThem do
him = GetItemByName(i)
him:SendData(data)
end
return 1
end
end
end
end