projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debug
[svn42.git]
/
update-xmpp-status.py
diff --git
a/update-xmpp-status.py
b/update-xmpp-status.py
index
8c64d5c
..
7671300
100755
(executable)
--- a/
update-xmpp-status.py
+++ b/
update-xmpp-status.py
@@
-283,6
+283,7
@@
while True:
#sockhandle.send("listen\n")
#sockhandle.send("status\n")
last_request = (None, None)
#sockhandle.send("listen\n")
#sockhandle.send("status\n")
last_request = (None, None)
+ not_initial_presence = False
while True:
line = conn.readline()
logging.debug("Got Line: " + line)
while True:
line = conn.readline()
logging.debug("Got Line: " + line)
@@
-298,7
+299,11
@@
while True:
continue
m = RE_PRESENCE.match(line)
if not m is None:
continue
m = RE_PRESENCE.match(line)
if not m is None:
- formatAndDistributePresence(m.group(1))
+ if not_initial_presence:
+ formatAndDistributePresence(m.group(1))
+ else:
+ not_initial_presence=True
+ distributeXmppMsg("Initial Presence received: %s" % m.group(1) ,debug=True)
continue
m = RE_STATUS.match(line)
if not m is None:
continue
m = RE_STATUS.match(line)
if not m is None: