Hmm, well looking at your code, you seem to have some other things incorrect which wouldn't work, so I'm guessing your isop code doesn't work or you've copied it wrong? I would assume that you were looking for something like:
on ^*:text:*:#:{
if ($nick isop #) { echo -m # (5:49) <@ $+ $nick $+ > $1- | halt }
}
That should work, then you can just change the isowner and . as suggested before to make the owner text event.