summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0030.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2009-09-01 17:24:52 +0000
committerNathan Fritz <fritzy@netflint.net>2009-09-01 17:24:52 +0000
commitb9f7af885c10edcea74ddadbe0dce5368a00a679 (patch)
treeaa60e778c84798cd31a99766f0c21ad496509aa9 /sleekxmpp/plugins/xep_0030.py
parent32ef496502bb338ee030b31ce7ba70e789995d9c (diff)
downloadslixmpp-b9f7af885c10edcea74ddadbe0dce5368a00a679.tar.gz
slixmpp-b9f7af885c10edcea74ddadbe0dce5368a00a679.tar.bz2
slixmpp-b9f7af885c10edcea74ddadbe0dce5368a00a679.tar.xz
slixmpp-b9f7af885c10edcea74ddadbe0dce5368a00a679.zip
* fixed some python3 transition bugs
* added status options to muc joining
Diffstat (limited to 'sleekxmpp/plugins/xep_0030.py')
-rw-r--r--sleekxmpp/plugins/xep_0030.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/xep_0030.py b/sleekxmpp/plugins/xep_0030.py
index fc921020..791038cd 100644
--- a/sleekxmpp/plugins/xep_0030.py
+++ b/sleekxmpp/plugins/xep_0030.py
@@ -36,17 +36,17 @@ class xep_0030(base.base_plugin):
self.xmpp.add_handler("<iq type='get' xmlns='%s'><query xmlns='http://jabber.org/protocol/disco#items' /></iq>" % self.xmpp.default_ns, self.item_handler)
def add_feature(self, feature, node='main'):
- if not self.features.has_key(node):
+ if not node in self.features:
self.features[node] = []
self.features[node].append(feature)
def add_identity(self, category=None, itype=None, name=None, node='main'):
- if not self.identities.has_key(node):
+ if not node in self.identities:
self.identities[node] = []
self.identities[node].append({'category': category, 'type': itype, 'name': name})
def add_item(self, jid=None, name=None, node='main', subnode=''):
- if not self.items.has_key(node):
+ if not node in self.items:
self.items[node] = []
self.items[node].append({'jid': jid, 'name': name, 'node': subnode})