Should change your ON INPUT event to include this:
if ((%3dtext == on) && ($left($1-,1) != /)) {
This will make sure that commands, like '/clear', won't be parsed.