-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for User and Channel models (closes #15).
This is extremely backwards-incompatible with v0.8 as it changes many interfaces for interacting with user and channel information, namely: - 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). - Instead of nicknames and channel names, User and Channel models are now passed to on_* hooks (BREAKING). - _sync_user has been completely removed and replaced with _parse_and_sync_user (and, to some extent, _get_or_create_user). Everything that made use of _parse_user now also synchronizes with the user database for consistency (may be breaking). - A new metaclass, ClientMeta, 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.
- Loading branch information
Tony Young
committed
Jun 8, 2015
1 parent
b7c771a
commit 9ac5d8e
Showing
13 changed files
with
445 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.