Skip to content

Commit

Permalink
reinstate error msg about incorrect compat flags
Browse files Browse the repository at this point in the history
  • Loading branch information
silentwings committed Jul 30, 2020
1 parent a503cb3 commit 20c583d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions protocol/Protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,15 @@ def _checkCompat(self, client):
logging.info('[%s] <%s> client "%s" logged in without TLS' % (client.session_id, client.username, client.agent))

if compat_error:
#client.RealSend("MOTD Your client has compatibility errors")
#if len(missing_flags)>0: client.RealSend("MOTD missing flags:%s" % missing_flags)
#if len(deprec_flags)>0: client.RealSend("MOTD deprecated flags:%s" % deprec_flags)
#if len(unknown_flags)>0: client.RealSend("MOTD unknown flags:%s" % unknown_flags)
#client.RealSend("MOTD -- -- - -- --")
client.RealSend("MOTD Your client has compatibility errors")
if len(missing_flags)>0: client.RealSend("MOTD missing flags:%s" % missing_flags)
if len(deprec_flags)>0: client.RealSend("MOTD deprecated flags:%s" % deprec_flags)
if len(unknown_flags)>0: client.RealSend("MOTD unknown flags:%s" % unknown_flags)
client.RealSend("MOTD -- -- - -- --")
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))

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

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

0 comments on commit 20c583d

Please sign in to comment.