Don't process Beast mode A/C messages if mode A/C is disabled.

This commit is contained in:
Oliver Jowett 2016-12-29 17:57:53 +00:00
parent 6336611bc7
commit 64fd61cffc

View file

@ -875,7 +875,7 @@ static int decodeBinMessage(struct client *c, char *p) {
ch = *p++; /// Get the message type
if (ch == '1') {
if (ch == '1' && Modes.mode_ac) {
msgLen = MODEAC_MSG_BYTES;
} else if (ch == '2') {
msgLen = MODES_SHORT_MSG_BYTES;