More important note though, this code doesn't check whether the plugin list is over 255 characters long, so super long plugin lists would break the protocol without the server noticing.