SET NOMEMO

Usage: SET NOMEMO [on|off]

This prevents people from being able to memo you. You cannot turn NOMEMO on if you have MFORWARD set on.

Example:
/msg nickserv set nomemo on

If you do not want to get memos from chatting, you can just turn them off for your nick.