View Single Post
03/18/17, 01:29 PM   #7
AssemblerManiac
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 51
Talking

And make it work so that the user gets prompted when creating a channel, to make sure they want to do it (so they are totally aware that it's happening). If there is a "channel owner", like housing, have authorizations to join it.

By prompting, addon authors can create a channel for communications between clients, without risk of channel floods (since both users would need to ok it) because only the channel (or channels) their addon opens can post data automatically. This eliminates the possibility of chat bots spewing spam and opens up the ability to share data among consenting/informed users.

rough concept
channelNum = ChatSystem:CreateChannel("MyDataSwap")
ChatSystem:RegisterEvent(channelNum, "OnReceiveMsg", function) -- event args are @username, date/time, msgNum, msgText
ChatSystem:SendText(channelNum, msgText) -- internally picks up @username to prevent spoofing
ChatSystem:CloseChannel(channelNum)

Channel name would need to be agreed on by any users wanting to establish comms, or set up through a normal chat /w msg (that will still require user to press enter in the normal chat edit win).

comments/suggestions welcome (this isn't something I've given much thought, these are first impressions)