]> code.delx.au - pymsnt/blobdiff - src/legacy/glue.py
Sensible messages are now sent to both participants if a file is rejected for being...
[pymsnt] / src / legacy / glue.py
index d9dbdd17432f821fc8115ef98b3ce6492f2fff21..0ba47b42685d96747e78353f707c0309b00e5061 100644 (file)
@@ -127,7 +127,7 @@ def jid2msn(jid):
                msnid = jid2msn_cache[jid]
                return msnid
        else:
-               if jid.index("%tel@") > 0:
+               if jid.find("%tel@") > 0:
                        jid = "tel:+" + jid.replace("%tel@", "@")
                msnid = unicode(jid[:jid.find('@')].replace('%', '@')).split("/")[0]
                jid2msn_cache[jid] = msnid