Skip to content

Commit 20c583d

Browse files
committed
reinstate error msg about incorrect compat flags
1 parent a503cb3 commit 20c583d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

protocol/Protocol.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,15 @@ def _checkCompat(self, client):
257257
logging.info('[%s] <%s> client "%s" logged in without TLS' % (client.session_id, client.username, client.agent))
258258

259259
if compat_error:
260-
#client.RealSend("MOTD Your client has compatibility errors")
261-
#if len(missing_flags)>0: client.RealSend("MOTD missing flags:%s" % missing_flags)
262-
#if len(deprec_flags)>0: client.RealSend("MOTD deprecated flags:%s" % deprec_flags)
263-
#if len(unknown_flags)>0: client.RealSend("MOTD unknown flags:%s" % unknown_flags)
264-
#client.RealSend("MOTD -- -- - -- --")
260+
client.RealSend("MOTD Your client has compatibility errors")
261+
if len(missing_flags)>0: client.RealSend("MOTD missing flags:%s" % missing_flags)
262+
if len(deprec_flags)>0: client.RealSend("MOTD deprecated flags:%s" % deprec_flags)
263+
if len(unknown_flags)>0: client.RealSend("MOTD unknown flags:%s" % unknown_flags)
264+
client.RealSend("MOTD -- -- - -- --")
265265
logging.info('[%s] <%s> client "%s" sent incorrect compat flags %s -- missing:%s, deprecated:%s, unknown:%s'%(client.session_id, client.username, client.agent, client.compat, missing_flags, deprec_flags, unknown_flags))
266266

267-
#client.RealSend("MOTD Please update your client / report these issues.")
268-
#client.RealSend("MOTD -- -- - -- --")
267+
client.RealSend("MOTD Please update your client / report these issues.")
268+
client.RealSend("MOTD -- -- - -- --")
269269

270270
def _new(self, client):
271271
login_string = ' '.join((self._root.server, str(self._root.server_version), '*', str(self._root.natport), '0'))

0 commit comments

Comments
 (0)