* do not stock anymore groupchat presence into NonBlockingRoster. Fixes #5160
This commit is contained in:
parent
5f55a54e76
commit
0497a1bedf
|
@ -21,7 +21,7 @@ Simple roster implementation. Can be used though for different tasks like
|
||||||
mass-renaming of contacts.
|
mass-renaming of contacts.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from protocol import JID, Iq, Presence, Node, NodeProcessed, NS_ROSTER
|
from protocol import JID, Iq, Presence, Node, NodeProcessed, NS_MUC_USER, NS_ROSTER
|
||||||
from plugin import PlugIn
|
from plugin import PlugIn
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
@ -94,6 +94,8 @@ class NonBlockingRoster(PlugIn):
|
||||||
def PresenceHandler(self,dis,pres):
|
def PresenceHandler(self,dis,pres):
|
||||||
''' Presence tracker. Used internally for setting items' resources state in
|
''' Presence tracker. Used internally for setting items' resources state in
|
||||||
internal roster representation. '''
|
internal roster representation. '''
|
||||||
|
if pres.getTag('x', namespace=NS_MUC_USER):
|
||||||
|
return
|
||||||
jid=pres.getFrom()
|
jid=pres.getFrom()
|
||||||
if not jid:
|
if not jid:
|
||||||
# If no from attribue, it's from server
|
# If no from attribue, it's from server
|
||||||
|
|
Loading…
Reference in New Issue