Changeset 702 for tools

Show
Ignore:
Timestamp:
11/04/07 14:36:13 (14 months ago)
Author:
michiel
Message:

try to read everything from the socket

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tools/nsa/nsa.py

    r701 r702  
    161161                        if r: 
    162162                                (client, addr) = self.sock.accept() 
    163                                 data = client.recv(1024) 
    164                                 bot.say_it(data) 
     163                                while True: 
     164                                        data = client.recv(1024) 
     165                                        if not data: 
     166                                                break 
     167                                        alldata += data 
     168                                bot.say_it(alldata) 
    165169                         
    166170