changeset d8abc5e99939 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=d8abc5e99939
description: whitespaces aren't added to the SM queue
diffstat:
src/common/xmpp/dispatcher_nb.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r f8d257de1052 -r d8abc5e99939 src/common/xmpp/dispatcher_nb.py
--- a/src/common/xmpp/dispatcher_nb.py Sat Jun 11 16:29:08 2011 -0400
+++ b/src/common/xmpp/dispatcher_nb.py Mon Jun 13 22:37:29 2011 -0400
@@ -536,7 +536,8 @@
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: