From 887b8d31b2d63fd118d650255be5937253b7f7bb Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 2 Oct 2009 14:58:47 +0200 Subject: [PATCH] don't show empty RIE requests. Fixes #5299 --- src/common/connection_handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 3aa14f7f0..4551e9764 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1861,8 +1861,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, exchange_items_list[jid] = [] exchange_items_list[jid].append(name) exchange_items_list[jid].append(groups) - self.dispatch('ROSTERX', (action, exchange_items_list, jid_from)) - + if exchange_items_list: + self.dispatch('ROSTERX', (action, exchange_items_list, jid_from)) def _messageCB(self, con, msg): '''Called when we receive a message'''