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'''