]> code.delx.au - pymsnt/commitdiff
Fixed msn2jid to not do /msn/msn
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Fri, 7 Jul 2006 11:22:44 +0000 (11:22 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Fri, 7 Jul 2006 11:22:44 +0000 (11:22 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@187 55fbd22a-6204-0410-b2f0-b6c764c7e90a

committer: jamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>

src/legacy/glue.py

index 9158dbe770620b7454523b815f0ba000dac84b1c..03eb1e5ee3cdf8dc1ee9b6a9500b3f0c8ef1da56 100644 (file)
@@ -108,10 +108,10 @@ def msn2jid(msnid, withResource):
        else:
                if msnid.startswith("tel:+"):
                        msnid = msnid.replace("tel:+", "") + "%tel"
-               jid = msnid.replace('@', '%') + "@" + config.jid + (withResource and "/msn" or "")
+               jid = msnid.replace('@', '%') + "@" + config.jid
                msn2jid_cache[msnid] = jid
                jid2msn_cache[jid] = msnid
-               return jid
+               return msn2jid(msnid, withResource)
 
 # Marks this as the function to be used in jabber:iq:gateway (Service ID Translation)
 def translateAccount(msnid):