Changeset 157

Show
Ignore:
Timestamp:
04/27/08 17:10:53 (7 months ago)
Author:
xbright
Message:

Petits bugs fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • randomchat/src/randomchat.py

    r153 r157  
    144144                    line = '[%s] <%s> %s\n' % (date, frm, message_) 
    145145 
    146                     file_.write(line
     146                    file_.write(line.encode('utf-8')
    147147                    file_.close() 
    148148 
     
    201201        print user['nick'] 
    202202 
    203         # Discard presence if the user is already in the chat. 
     203        # Discard presence if the user is already in the chat. 
    204204        if user['nick'] is not None and prs.getType() == 'available': 
    205205            return 
     
    229229            x.addChild('status', attrs = {'code': '110'}) 
    230230 
    231             # Send the user self presence. 
     231            # Send the user self presence. 
    232232            con.send(presence) 
    233233 
     
    236236            self.rooms[room].append(frm) 
    237237 
    238         # If the user is already in, and we are this far, that means that we 
     238        # If the user is already in, and we are this far, that means that we 
    239239        # got a presence type != available, we assume that he has left the chat. 
    240240        else: