commit a patch for xmpppy

This commit is contained in:
Nikos Kouremenos 2005-08-18 18:50:30 +00:00
parent ff1a648725
commit 1449be9bad
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ class Roster(PlugIn):
internal roster representation. """
jid=JID(pres.getFrom())
if not self._data.has_key(jid.getStripped()): self._data[jid.getStripped()]={'name':None,'ask':None,'subscription':'none','groups':['Not in roster'],'resources':{}}
if type(self._data[jid.getStripped()]['resources'])!=type(dict()):
self._data[jid.getStripped()]['resources']={}
item=self._data[jid.getStripped()]
typ=pres.getType()