summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/servercontact.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/classes/servercontact.py b/classes/servercontact.py
index ea7216d..749a2c3 100644
--- a/classes/servercontact.py
+++ b/classes/servercontact.py
@@ -34,11 +34,11 @@ class ServerContact:
# extract jabber:x:data from query
xdata = query.findall('{jabber:x:data}x')
- # check for multiple x nodes
- for x in range(len(xdata)):
+ # iterate over all nodes with the xdata tag
+ for node in xdata:
- # iterate over all x nodes
- for child in xdata[x]:
+ # iterate over all child elements in node
+ for child in node:
# if one opt_arg is defined return just that one
if self.opt_arg in self.possible_vars: