mirror of https://github.com/Shizmob/pydle.git
4eb83cfbb1
This is a somewhat backwards-incompatible with v0.8 as it changes many interfaces for interacting with user and channel information, namely: - Instead of nicknames and channel names, User and Channel models are now passed to on_* hooks (BREAKING). Additionally, on_nick_change has been changed to take the arguments (user, original_nick). - All previous dictionary fields have been converted to attributes, e.g. user['username'] is now user.username. This extends to results from WHOIS (WHOISInfo) and WHOWAS (WHOWASInfo). __getitem__ and __setitem__ are implemented, for the time being, to maintain backwards compatibility. - _sync_user has been completely removed and replaced with _parse_and_process_user (and, to some extent, _get_user). Everything that made use of _parse_user now also synchronizes with the user database for consistency (may be breaking). - A new metaclass, ClientType, has been introduced to allow dynamic composition of the User and Channel classes on the feature classes (internal only). - User/Channel objects have the message() method when RFC1459 support is active (feature). Oh, and now the contents parameter of ctcp() actually does something. |
||
---|---|---|
.. | ||
features | ||
utils | ||
__init__.py | ||
async.py | ||
client.py | ||
connection.py | ||
models.py | ||
protocol.py |