From 64fd61cffce6dce4c7e06f0b6fa7b6d50c442f7d Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 29 Dec 2016 17:57:53 +0000 Subject: [PATCH] Don't process Beast mode A/C messages if mode A/C is disabled. --- net_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net_io.c b/net_io.c index 4d2d88e..8d97272 100644 --- a/net_io.c +++ b/net_io.c @@ -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;