well, you could use the comparison of:

Code:
if ($cmdbox) {
  stuff
}


That's been in mirc since the 2nd editbox aka the command box. I use it on an ops talker (among other things) script I have and has worked perfectly.


Those who fail history are doomed to repeat it