1 Aug 2005 02:16
PyICQ-t - Fix for xdb roster saving
Oleg Motienko <motienko <at> gmail.com>
2005-08-01 00:16:04 GMT
2005-08-01 00:16:04 GMT
Hello. Here is a small patch for proper xdb roster saving. It seem like this patch fix problem when roster in xdb is cleared. Also I saw such problem: people who use only icq2000 and older versions doesn't have buddies list on server, but cat have it in spool file of JIT. Does PyICQ-t check if uin from xdb is present in server list? -- Regards, Oleg
--- src/legacy/icqt.py Mon Aug 1 03:37:50 2005
+++ src/legacy/icqt.py Mon Aug 1 03:41:08 2005
<at> <at> -730,17 +733,18 <at> <at>
newXDB = Element((None, "query"))
newXDB.namespace = "jabber:iq:roster"
+ newXDB.attributes["xmlns"] = "jabber:iq:roster"
for c in self.xdbcontacts:
try:
item = Element((None, "item"))
- item.setAttribute("jid", c)
- newXDB.appendChild(item)
+ item.attributes["jid"] = c
+ newXDB.addChild(item)
(Continue reading)
RSS Feed