How does the user know, by looking at the dialog what item is to be returned?
Personally, in the dialog, I would have a text item CTCP as ID 4 and the item where the information for that to be displayed as ID 5
Thus you could use something like
Code:
$readini($mircdirscript\ini\settings.ini,protection,$did(4))
for the CTCP information.