zoomquiet / cngtalkbot Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/cngtalkbot
License: GNU General Public License v2.0
Automatically exported from code.google.com/p/cngtalkbot
License: GNU General Public License v2.0
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.