diff options
Diffstat (limited to 'src/common/xmpp/roster.py')
-rw-r--r-- | src/common/xmpp/roster.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/xmpp/roster.py b/src/common/xmpp/roster.py index 3f1f48f62..2161470b6 100644 --- a/src/common/xmpp/roster.py +++ b/src/common/xmpp/roster.py @@ -93,7 +93,7 @@ class Roster(PlugIn): jid=self._owner.Server jid=JID(jid) if jid.getStripped() not in self._data: self._data[jid.getStripped()]={'name':None,'ask':None,'subscription':'none','groups':['Not in roster'],'resources':{}} - if type(self._data[jid.getStripped()]['resources'])!=type(dict()): + if not isinstance(self._data[jid.getStripped()]['resources'], dict): self._data[jid.getStripped()]['resources']={} item=self._data[jid.getStripped()] typ=pres.getType() @@ -194,4 +194,4 @@ class Roster(PlugIn): """Returns the internal data representation of the roster.""" return self._data -# vim: se ts=3:
\ No newline at end of file +# vim: se ts=3: |