From 332eea3b3bae719c707e99031660197b22fe41ce Mon Sep 17 00:00:00 2001 From: Lance stout Date: Mon, 31 May 2010 13:35:15 -0400 Subject: [PATCH] Make sure that the node is alway set in disco responses. --- sleekxmpp/plugins/xep_0030.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sleekxmpp/plugins/xep_0030.py b/sleekxmpp/plugins/xep_0030.py index 6a31d24..2c8d435 100644 --- a/sleekxmpp/plugins/xep_0030.py +++ b/sleekxmpp/plugins/xep_0030.py @@ -138,6 +138,9 @@ class DiscoNode(object): self.info = DiscoInfo() self.items = DiscoItems() + self.info['node'] = name + self.items['node'] = name + # This is a bit like poor man's inheritance, but # to simplify adding information to the node we # map node functions to either the info or items