cybits / cybot

an IRC bot written in something that may resemble python
GNU Affero General Public License v3.0
14 stars 16 forks source link

Fixed a statement using raw data instead of preprocessed data. #24

Closed boreq closed 9 years ago

boreq commented 9 years ago

data is the raw data received from the socket. If the data sent by the IRC server does not fit in the buffer only a partial message will be received. Furthermore there is no guarantee that the data received from the socket contains a single message. That is why the process_data function is used.