Changeset c82a88d
- Timestamp:
- 2015-06-08T20:22:08Z (9 years ago)
- Children:
- d832164
- Parents:
- d628339
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/wa.py
rd628339 rc82a88d 146 146 return 147 147 148 status = 8 # MOBILE 149 if pres.getType() != "unavailable": 150 status |= 1 # ONLINE 148 # Online/offline is not really how WA works. Let's show everyone 149 # as online but unavailable folks as away. This also solves the 150 # problem of offline->IRC /quit causing the persons to leave chat 151 # channels as well (and not reappearing there when they return). 152 status = 8 | 1 # MOBILE | ONLINE 153 if pres.getType() == "unavailable": 154 status |= 4 # AWAY 151 155 self.cb.buddy_status(pres.getFrom(), status, None, None) 152 156 … … 213 217 if entity.invalidNumbers: 214 218 self.cb.error("Invalid numbers: %s" % 215 ", ".join(entity.invalidNumbers .keys()))219 ", ".join(entity.invalidNumbers)) 216 220 217 221 # Disabled since yowsup won't give us the result... … … 376 380 self.bee.chat_add_buddy(id, self.account["user"]) 377 381 for msg in group.setdefault("queue", []): 382 ## TODO: getBody fails for media msgs. 378 383 self.bee.chat_msg(group["id"], msg.getParticipant(), msg.getBody(), 0, msg.getTimestamp()) 379 384 del group["queue"]
Note: See TracChangeset
for help on using the changeset viewer.