Your event is missing, keaven, which doesn't give me a clue as to this snippet is for active channel or PM.