Changeset 154
- Timestamp:
- 05/14/02 14:43:39 (6 years ago)
- Files:
-
- trunk/RBJabber/RBJabber/iqAuthQuery.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBJabber/RBJabber/iqAuthQuery.py
r135 r154 62 62 # So remove that match criteria. 63 63 self.Match.pop() 64 self._AuthInProgress = 1 64 65 65 66 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 69 69 else: return super(iqAuthQuery, self).__nonzero__() 70 70 71 71 def __call__(self, stream, iq): 72 72 if iq.type == 'result': 73 73 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)
