From 93db6e98595dcf71a4e035faa8767c0afa7f833d Mon Sep 17 00:00:00 2001 From: Job Snijders Date: Wed, 11 Sep 2024 15:13:34 +0000 Subject: [PATCH] More v2 cleanup --- lib/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.go b/lib/server.go index 62ec600..0b695be 100644 --- a/lib/server.go +++ b/lib/server.go @@ -717,7 +717,7 @@ func (c *Client) SetDisableVersionCheck(disableCheck bool) { } func (c *Client) checkVersion(newversion uint8) { - if (!c.versionset || newversion == c.version) && (newversion == PROTOCOL_VERSION_2 || newversion == PROTOCOL_VERSION_1 || newversion == PROTOCOL_VERSION_0) { + if (!c.versionset || newversion == c.version) && (newversion == PROTOCOL_VERSION_1 || newversion == PROTOCOL_VERSION_0) { c.SetVersion(newversion) } else { if c.log != nil {