Commit Graph

8 Commits

Author SHA1 Message Date
Shiz 8439d2d24b Update documentation on recent changes. 2014-02-20 01:51:28 +01:00
Shiz 24228b68fb Move password connection parameter to features.rfc1459. 2014-02-10 02:47:49 +01:00
Shiz 0b3278723b Update README to reflect codebase changes. 2014-02-10 02:47:49 +01:00
Shiz 8c6cb164ff Seperate base RFC1459 functionality into feature.
This moves pretty much all RFC1459-dependent code into
`pydle.features.rfc1459`. `pydle.features.ircv3_1` and
`pydle.features.ircv3_2` have also been reorganized.
2014-02-10 02:47:28 +01:00
Shiz ae9d2bad8a Refactor IRC message parsing into extensible architecture.
Instead of having a single monolithic function in the pydle.protocol
module parse messages, there will now be a protocol.Message class
features can extend from to add functionality to the parser.
Consequently, all internal callbacks have been changed to take messages
as arguments instead of a collection of metadata about the messages.

A message object should provide the following API:
- __init__(command, parameters, **kwargs): create a message.
- (static) parse(line, encoding='utf-8'): parse a line into a message.
  Should return a message instance or raise protocol.ProtocolViolation
  on error.
- construct(): turn message into a raw IRC line ready to send to the
  server.

pydle.Connection has new APIs to deal with differing message classes.
2014-02-02 16:26:03 +01:00
Shiz f859455d55 Add documentation for pydle.featurize. 2014-01-23 03:00:16 +01:00
Shiz d09e466861 Fix outdated README statements. 2014-01-23 02:50:52 +01:00
Shiz 0fc2391f7a Initial import. 2014-01-23 02:44:19 +01:00