the delayed timestamp in before time.time() !

This commit is contained in:
Yann Leboulanger 2005-05-13 18:23:08 +00:00
parent 229863bc0b
commit e1020b288f
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ class Protocol(Node):
self.timestamp=None
for x in self.getTags('x',namespace=NS_DELAY):
try:
if x.getAttr('stamp')>self.getTimestamp(): self.setTimestamp(x.getAttr('stamp'))
if x.getAttr('stamp')<self.getTimestamp(): self.setTimestamp(x.getAttr('stamp'))
except: pass
if timestamp is not None: self.setTimestamp(timestamp) # To auto-timestamp stanza just pass timestamp=''
def getTo(self):