SatomiAhn/ocupdater — pull request #3 by Swiftkill (2012-12-02 18:16:41+00:00)
Title: @ Prefix enhancement  proposal by Summerclaw

Proposal:

As far as I know there are two prefixes possible to an OpenCollar. As I am Summerclaw Resident, my collar will respond to myself or an owner if they use "sr" as a prefix (I know that can be changed) or "*".

I propose another "generic" type prefix, perhaps "@". The semantics for this new prefix is:

"All collars of which I am either a wearer or an owner/secowner."

Examples of situations in which this might be useful are when in a place where collars set to Open Access may be present. An owner can use "@grab" to grab their subs without grabbing everyone with open access as well. Of course they could grab them one by one too, I know.

Another example might be where two subs, one owned, the other open access, have the same initials. Voice commands can be problematic then.

Solution:

"listener" module checks if command starts with "@" and passes it without removing "@" from command.
"Auth" module check if first letter of command is "@". If true, it check if Auth level identified either owner\secowner or wearer. if that true, "@" is cut from command string and normal Auth workflow continues. If not, handling stopped , preventing script from relaying command further.