]> code.delx.au - pymsnt/blobdiff - src/avatar.py
Use md5 hashes for spool dir. Moved avatar dir to root of spool dir.
[pymsnt] / src / avatar.py
index d8d1a4c4b978c51c6e12092b0477276987a7c2b3..697400aa7c11e84fd0c6f179817ca704666c8c56 100644 (file)
@@ -73,7 +73,7 @@ class AvatarCache:
                """ Returns the full path to the directory that a 
                particular key is in. Creates that directory if it doesn't already exist. """
                X = os.path.sep
-               d = os.path.os.path.abspath(config.spooldir) + X + config.jid + X + "avatars" + X + key[0:3] + X 
+               d = os.path.os.path.abspath(config.spooldir) + X + "avatars" + X + key[0:3] + X 
                if not os.path.exists(d):
                        os.makedirs(d)
                return d