EFnet's IRCd has an "anti spam quit message" feature. If you are connected for < N seconds, you can't use a quit message. The reason is, they found that most people who are connected for, for example, 2 minutes, usually only use the quit message for spam. Exactly how long you must be connected before it allows it depends on the particular server.