messages.c: fixed an oversight that was allowing attachments even