- Timestamp:
- 2015-05-24T18:31:13Z (10 years ago)
- Children:
- 93e0901
- Parents:
- cb1b973
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/wa.py
rcb1b973 r2446e4c 109 109 # sane enough? 110 110 self.cb.buddy_times(pres.getFrom(), 0, int(pres.getLast())) 111 except ValueError:112 # Could be "error" or, more likely, "deny" 111 except (ValueError, TypeError): 112 # Could be "error" or, more likely, "deny", or None. 113 113 pass 114 114 … … 120 120 if msg.getParticipant(): 121 121 group = self.b.groups.get(msg.getFrom(), None) 122 if not group :122 if not group or "id" not in group: 123 123 self.cb.log("Warning: Activity in room %s" % msg.getFrom()) 124 124 self.b.groups.setdefault(msg.getFrom(), {}).setdefault("queue", []).append(msg) … … 314 314 self.bee.chat_add_buddy(id, self.account["user"]) 315 315 for msg in group.setdefault("queue", []): 316 self. cb.chat_msg(group["id"], msg.getParticipant(), msg.getBody(), 0, msg.getTimestamp())316 self.bee.chat_msg(group["id"], msg.getParticipant(), msg.getBody(), 0, msg.getTimestamp()) 317 317 del group["queue"] 318 318
Note: See TracChangeset
for help on using the changeset viewer.