Code Monkey home page Code Monkey logo

cngtalkbot's People

Watchers

 avatar

cngtalkbot's Issues

含大写字符的gmail帐号,在gtalkbot中状态总是非online

What steps will reproduce the problem?
1. 注册一个含大写的gmail帐号
2. 加入一个使用 cngtalkbot 版本的群中
3. 
会发现无法接收任何广播的消息,输入/names,会发现自己的��
�态是offline

fix:
经过追踪,发现问题出现在jabber.py里面

jabber.py 里面的 Client 类,dispatch 函数,在 
elif root_node.name == 'presence': 
这个选择,pres_obj.getFrom() 获得的是大写的node,而在 
elif root_node.name == 'iq': 
这个选择,jid = item.getAttr('jid') 这里获得的 jid 是小写的。
因此在Roster._setOnline 那里无法设置online属性。现在将 jid = 
unicode(jid)
改成 jid = unicode(jid).lower() 就好了

已经提交到svn中,版本rev5

Original issue reported on code.google.com by [email protected] on 23 Aug 2007 at 3:55

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.