hope this is in the right section :D
Is it posible at sometime in the future to have an option to block all downloads & searches to non reg users?
also an option where the hub will send a chosen MSG to non reg'd users in either PM or main chat or even both?
i know that this can be done via LUA scripting but more scripting = slower hub.
regards
If I hadn't red the last paragraph, I'd recommend u using the scripts posted in the Lua 5 Finished Section ;)
;)
Maybe we could get a default profile for the unregs. then it would be more uniform to assign an on/off switch (just like the permissions of a profile) for downloading & searching... ( like [ ] Can search & [ ] Can Download
good idea, maybe it might be easier to send a mass message to all unregistered users then 8)
just a thought :D
QuoteOriginally posted by ruler
good idea, maybe it might be easier to send a mass message to all unregistered users then 8)
just a thought :D
it is dead easy now already...
--- use like SendToLvl(msg, lvl) or SendToLvl(from, msg, lvl)
function SendToLvl(...)
local from,msg,lvl
if table.getn(args) == 3 then
from, msg, lvl = args[1],args[2],args[3]
elseif table.getn(args) == 2 then
msg,lvl = args[1], args[2]
else msg,lvl = args[1], -1
end
for i,user in frmHub:GetOnlineUsers() do
if (user.iProfile == lvl) then
if from then
user:SendData( from, msg )
else user:SendData( msg )
end
end
end
end
--- use like SendPmToLvl ( "botname", "msg", lvl )
function SendPmToLvl(from,msg,lvl)
for i,user in frmHub:GetOnlineUsers() do
if (user.iProfile == lvl) then
user:SendPM( from, msg )
end
end
end