ADCH++ hide (third-party) commands (WIP)

Hi, I am working (and learning) on a script which allows for clients (bots) to get commands from the main chat, which are hidden from the other users. This may be by transforming the message to an private message or sending it only to the bot. I am not sure yet how I will end up with it. Right now I am a bit stuck on sending the message to the bot. So if anyone would like to share a tought, I would appreciate it.

I tought I could use autil.pm, but it seems I’m using it wrong or just don’t understand correctly what it does. This is what I used:

autil.pm(msg, from:getSID(), b:getSID())

The whole script is available as a github gist: https://gist.github.com/DjSlash/4967063

Please note that this is work in progress and is just a beginning.