Don't process Beast mode A/C messages if mode A/C is disabled.
This commit is contained in:
parent
6336611bc7
commit
64fd61cffc
2
net_io.c
2
net_io.c
|
@ -875,7 +875,7 @@ static int decodeBinMessage(struct client *c, char *p) {
|
||||||
|
|
||||||
ch = *p++; /// Get the message type
|
ch = *p++; /// Get the message type
|
||||||
|
|
||||||
if (ch == '1') {
|
if (ch == '1' && Modes.mode_ac) {
|
||||||
msgLen = MODEAC_MSG_BYTES;
|
msgLen = MODEAC_MSG_BYTES;
|
||||||
} else if (ch == '2') {
|
} else if (ch == '2') {
|
||||||
msgLen = MODES_SHORT_MSG_BYTES;
|
msgLen = MODES_SHORT_MSG_BYTES;
|
||||||
|
|
Loading…
Reference in a new issue