Indeed. Add that $rawmsg is broken for chat events in that it also strips ACTION from the returned line (since v6.30) leaving no way to differentiate between chat msg and action.