Changeset 154

Show
Ignore:
Timestamp:
05/14/02 14:43:39 (6 years ago)
Author:
lking
Message:

*** empty log message ***

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBJabber/RBJabber/iqAuthQuery.py

    r135 r154  
    6262        # So remove that match criteria. 
    6363        self.Match.pop() 
     64        self._AuthInProgress = 1 
    6465 
    6566    def __nonzero__(self): 
    66         if self.JC().information.authorized: 
    67             # We can be deallocated when we have been authenticated 
    68             return 0 
     67        if self._AuthInProgress: 
     68            return 1 
    6969        else: return super(iqAuthQuery, self).__nonzero__() 
    70          
     70        
    7171    def __call__(self, stream, iq): 
    7272        if iq.type == 'result': 
    7373            self.JC().information.authorized = 1 
    74         super(iqAuthQuery, self).__call__(stream, iq) 
    75  
     74        self._AuthInProgress = 0 
     75        if self: 
     76            return super(iqAuthQuery, self).__call__(stream, iq)