Hi all,
I made this little script to forbide users with ",O:xx" on their tag to get on the Hub..
Bot = "Extra-Slot"
function NewUserConnected(user, data)
if strfind(user.sMyInfoString,"O:") then
user:SendData(Bot, "Settings of DC->Sharing , Open extra slot must be zero.")
user:SendData(Bot, "Disconnecting...")
user:Disconnect()
end
end
But it?s not working, can anyonehelp me ??
Best regards, nErBoS
QuoteOriginally posted by nErBoS
Hi all,
I made this little script to forbide users with ",O:xx" on their tag to get on the Hub..
Bot = "Extra-Slot"
function NewUserConnected(user, data)
if strfind(user.sMyInfoString,"O:") then
user:SendData(Bot, "Settings of DC->Sharing , Open extra slot must be zero.")
user:SendData(Bot, "Disconnecting...")
user:Disconnect()
end
end
But it?s not working, can anyonehelp me ??
Best regards, nErBoS
I can't help you with the script but i tinkt O:? means Oploadlimit and not numbers of extra slots.
No, O:xx -> means Open Extra Slot check out your DC or oDC in Settings of DC->Sharing , Open extra slot
Do you really need data in NewUserConnected?
why not ??
try this.
this also answers kepp's question.
Bot = "Extra-Slot"
function NewUserConnected(user)
if strfind(user.sMyInfoString,"(O:%x)")then
user:SendData(Bot, "Settings of DC->Sharing , Open extra slot must be zero.")
user:SendData(Bot, "Disconnecting...")
user:Disconnect()
end
end
plop
I have already tried that plop didn?t work : (
if this 1 works your running TD4 and encountered the same bug as i have 2day.
Bot = "Extra-Slot"
function DataArrival(user, data)
if strfind(user.sMyInfoString,"(O:%x)")then
user:SendData(Bot, "Settings of DC->Sharing , Open extra slot must be zero.")
user:SendData(Bot, "Disconnecting...")
user:Disconnect()
end
end
plop
still not working :(