Cookie fix

The cookie command didn't check if there was a valid mention , it only
checked if there was any text after cookie... Fixed that