doc/tcl-commands.doc wrote:hand2idx<handle> Returns: the idx (a number greater than or equal to zero) for the user given if the user is on the party line in chat mode (even if she is currently on a channel or in chat off), the file area, or in the control of a script. -1 is returned if no idx is found. If the user is on multiple times, the oldest idx is returned. Module:core
R sorry the .console <#channel> [args] settings. Seems the console module documents as well, didn't have anything on this.
I looked at some of the modules that have dcc commands like .op .kickban ...etc for how they return the users .console <#channel> and found
Ahh, sorry, guess I didn't read your post thorough enough.
Once you've got the idx, just use the console tcl command:
console<idx>[channel][console-modes] Description: changes a dcc user's console mode, either to an absolute mode (like "mpj") or just adding/removing flags (like "+pj" or "-moc" or "+mp-c"). The user's console channel view can be changed also (as long as the new channel is a valid channel). Returns: a list containing the user's (new) channel view and (new) console modes, or nothing if that user isn't currently on the partyline Module: core
Of course, if you're in the making of a module, it would be far easier to simply access the dcc table, like illustrated in your previous post.