names are short

This commit is contained in:
2016-04-22 00:06:32 -04:00
parent f90038beae
commit 6497638f7e
+1 -1
View File
@@ -491,7 +491,7 @@ def readsock(sock):
else:
oldclient = False
if verbose: print "readsock = %s, %s" % (msg,addr)
name = msg.get('name', "unknown")
name = shortname(msg.get('name', "unknown"))
if not name in hosts: # was: hosts.has_key(name):
host = Host(name)
newh=True