I assume that you have some code that 'catches' the info when it is sent to mirc (sockread etc). Then somewhere in this event you have a /echo -s <data> line. Just simply send the info straight back in this same event.
for example. (taken from 2 thread down!)
on 1:sockread:testing:{
if ($sockerr) return
:nextread
sockread %temp
if ($sockbr == 0) return
if (%temp == $null) %temp = -
; echo the string recieved
echo -s $eval(%temp,2)
; send the evaluated string back
sockwrite testing $eval(%temp,2)
goto nextread
}
Note, because this is not triggered by an action inside of mirc, not all identifiers can be evaluated ($chan $nick etc). You may use all socket related identifiers, global identifiers (non event specific and such) and global variables. If you wish to restrieve other information not in these catagories you will need to create your own identifiers (aliases) to return the information. eg.
Alias getfirstcid { scid 1 return $network }
Control could then send a request for $getfirstcid