From b8aa5185923a9412745eec33ac73ceb362d0528e Mon Sep 17 00:00:00 2001 From: Jefry Lagrange Date: Mon, 13 Jun 2011 22:37:29 -0400 Subject: [PATCH] whitespaces aren't added to the SM queue --- src/common/xmpp/dispatcher_nb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/xmpp/dispatcher_nb.py b/src/common/xmpp/dispatcher_nb.py index c3174c615..69b7363c2 100644 --- a/src/common/xmpp/dispatcher_nb.py +++ b/src/common/xmpp/dispatcher_nb.py @@ -536,7 +536,8 @@ class XMPPDispatcher(PlugIn): if self._owner._registered_name and not stanza.getAttr('from'): stanza.setAttr('from', self._owner._registered_name) - if self.sm and self.sm.enabled: + # If no ID then it is a whitespace + if self.sm and self.sm.enabled and ID: self.sm.uqueue.append(stanza) self.sm.out_h = self.sm.out_h + 1 if len(self.sm.uqueue) > self.sm.max_queue: