Changeset 157
- Timestamp:
- 04/27/08 17:10:53 (7 months ago)
- Files:
-
- randomchat/src/randomchat.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
randomchat/src/randomchat.py
r153 r157 144 144 line = '[%s] <%s> %s\n' % (date, frm, message_) 145 145 146 file_.write(line )146 file_.write(line.encode('utf-8')) 147 147 file_.close() 148 148 … … 201 201 print user['nick'] 202 202 203 # Discard presence if the user is already in the chat.203 # Discard presence if the user is already in the chat. 204 204 if user['nick'] is not None and prs.getType() == 'available': 205 205 return … … 229 229 x.addChild('status', attrs = {'code': '110'}) 230 230 231 # Send the user self presence.231 # Send the user self presence. 232 232 con.send(presence) 233 233 … … 236 236 self.rooms[room].append(frm) 237 237 238 # If the user is already in, and we are this far, that means that we238 # If the user is already in, and we are this far, that means that we 239 239 # got a presence type != available, we assume that he has left the chat. 240 240 else:
