The agent stops speaking, prematurely, when the "OK" button is pressed on the options dialog.

(Tested after deleting mirc.ini.)

1. Place the following code in your remotes section:

Code:
 
on *:AGENT: {
  echo 12 -agte The AGENT event has been triggered.
}


2. Enable the agent for private messages.

3. Type: //msg $me $str(O, 50) end

4. Navigate to Tools -> Options and press "OK"

5. The agent stops speaking and the AGENT event is triggered as soon as "OK" is pressed.

mIRC v6.17
Windows XP SP2