READ THE RULES
0 Members and 1 Guest are viewing this topic.
No, nobody reported that
So what is the sense of not receiving $Search and chat and other things? In my ~7 years of DC experience this has never been required.
{ ["nick1"]=1, ["nick2"]=1 }
if usertable[user.sNick] then block_chat() end
But one usually does not loop through the online users' table for this but instead a table is created like:Code: [Select]{ ["nick1"]=1, ["nick2"]=1 } etc. then a simple Code: [Select]if usertable[user.sNick] then block_chat() end will suffice.
function SearchArrival(user, data) local i, u_nick, i_nicku_nick = user.sNickfor _, i in ipairs(Core.GetOnlineUsers()) do i_nick = i.sNick if not tBlockSearch[i_nick] and i_nick ~= u_nick then Core.SendToUser(i, data) endendreturn trueend
The hungarian hubsoftware had the option to turn off the chat messages after x minutes inactivation. And the Lua API had SendToMcOn call to send message to users whose chat is on.
It is necessary for me to isolate some users form other users.
{"joe", "brian", "pilate", "centurion"}
Then run second hub and redirect them to that hub
Btw this is not feature request part of board, any request here are ignored.
OK, I see that you want to disallow users from _receiving_ such things like mainchat messages and $Search requests. This would be done easier is SendToAll had an additional parameter that is an array: Code: [Select]{"joe", "brian", "pilate", "centurion"} which will not send the particular protocol message to other users.
Nevertheless, I still do not get what the practical use could be.
Very inconveniently
Whether is easier to tell, that you do not wish anything to change?
You can do your isolation thing with script