Show
Ignore:
Timestamp:
09/04/07 20:38:33 (15 months ago)
Author:
asterix
Message:

Handle Multiple status code in MUC.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.1/src/common/xmpp/protocol.py

    r8672 r8710  
    510510    def getStatusCode(self): 
    511511        """Returns the status code of the presence (for groupchat)""" 
    512         return self._muc_getItemAttr('status','code') 
     512        attrs = [] 
     513        for xtag in self.getTags('x'): 
     514            for child in xtag.getTags('status'): 
     515                attrs.append(child.getAttr('code')) 
     516        return attrs 
    513517 
    514518class Iq(Protocol):