Commit Graph

503 Commits

Author SHA1 Message Date
Shiz eb83270466 Make EventLoop compatible with nested context managers. 2014-02-13 18:22:23 +01:00
Shiz 749daa5d86 Make EventLoop more robust. 2014-02-13 18:19:18 +01:00
Shiz a695fd2696 Clean up argument naming. 2014-02-13 18:15:08 +01:00
Shiz bfa002848f Add future and coroutine functionality. 2014-02-13 18:14:57 +01:00
Shiz 91cf9e3652 Add WHOIS and WHOWAS. 2014-02-13 18:12:28 +01:00
Shiz e8b8e8a582 Move event loop to client. 2014-02-13 15:05:21 +01:00
Shiz 6c8ed4a189 Merge branch 'async' of github:Shizmob/pydle into async 2014-02-13 14:37:29 +01:00
Shiz f61fdfa6e6 Schedule message handlers instead of calling them directly. 2014-02-13 14:37:20 +01:00
Tony Young 9bcb9f2765 Add callbacks for connection in TLS connection. 2014-02-14 01:30:14 +13:00
Tony Young 06dab44dc2 Allow passing eventloop as an argument to connect(). 2014-02-14 01:18:52 +13:00
Shiz 0472d6020a Merge branch 'async' of github:Shizmob/pydle into async 2014-02-13 07:29:21 +01:00
Shiz 3045fc2fd1 Implement creation of tagged messages. 2014-02-13 07:29:04 +01:00
Shiz d065d1a780 Improve documentation. 2014-02-13 07:27:37 +01:00
Tony Young 7ef0c2925c Merge branch 'async' of github.com:Shizmob/pydle into async 2014-02-13 18:34:13 +13:00
Tony Young 0fbafa9fef Allow passing an IO loop instance into the constructor for EventLoop. 2014-02-13 18:32:45 +13:00
Shiz 1cd2434fda Remove error callback properly on off_error. 2014-02-13 06:29:09 +01:00
Shiz cb8dbd7f28 Fix throttling code to work properly with event loop. 2014-02-13 06:23:58 +01:00
Shiz 703aec2249 Don't attempt to handle events for which no handlers exist. 2014-02-13 05:38:50 +01:00
Shiz ac67af2552 Fix messages not being parsed properly. 2014-02-13 05:35:58 +01:00
Shiz 52a3416abd Fix irccat CTCP handler. 2014-02-13 04:38:10 +01:00
Shiz 6e4e0c0243 Merge branch 'master' into async 2014-02-13 04:35:05 +01:00
Shiz 78cdfd76e3 Merge branch 'master' into async 2014-02-13 04:31:40 +01:00
Shiz f8a7826366 Port utils to asynchronous connection. 2014-02-13 04:28:36 +01:00
Shiz 7399210ffa Add message seperator back to message. 2014-02-13 04:11:12 +01:00
Shiz 5ab5045709 Record raw original message in Message class. 2014-02-13 04:10:45 +01:00
Shiz d5f01d7440 Move encoding/decoding of messages to client. 2014-02-13 03:54:50 +01:00
Shiz 57fe14e266 Port client to new event loop-based connection. 2014-02-13 03:43:44 +01:00
Shiz 06c594d5a6 Move several constants to features.rfc1459.protocol. 2014-02-13 03:41:37 +01:00
Shiz b4c25b5631 Add upgrade to TLS functionality to connection. 2014-02-13 03:41:37 +01:00
Shiz f06bbc6652 Convert Connection to use the asynchronous event loop.
The connection object will now allow for its consumers to register for
events to show up, and will only allow sending of raw strings. No
message intertwining.
2014-02-13 03:41:34 +01:00
Shiz 32b996d23b Add asynchronous event loop.
This new event loop, located in async.py, is a light wrapper around
Tornado's event loop.
2014-02-13 03:17:40 +01:00
Shiz ef2715e083 Fix constant name typo in LIST_LIMITS_GROUPS. 2014-02-12 23:22:42 +01:00
Shiz c02f8af640 Make deep copy of limit dictionaries too. 2014-02-12 23:22:02 +01:00
Shiz 7511288303 Make a deep copy of behaviour dictionaries to prevent shared instances. 2014-02-12 23:19:44 +01:00
Shiz 4e3cb1a0d6 Replace hardcoded mode behaviours. 2014-02-12 23:03:55 +01:00
Shiz d4e79ac6f0 Don't add prefixes to valid channel modes, but their modes. 2014-02-12 22:26:59 +01:00
Shiz cac308c9a4 Fix channel modes in ISUPPORT not being correctly recorded. 2014-02-12 22:23:42 +01:00
Shiz 19c96474a6 Copy user list on _destroy_channel to prevent runtime error. 2014-02-11 04:12:15 +01:00
Shiz a8d03480e1 Make RFC1459 protocol.py prettier. 2014-02-10 02:48:59 +01:00
Shiz 972342a7a8 Remove traces of old types system. 2014-02-10 02:48:59 +01:00
Shiz c9c590b96a Actually handle parse_data() returning False. 2014-02-10 02:48:59 +01:00
Shiz a945074b8d Improve handler failure logging. 2014-02-10 02:48:59 +01:00
Shiz 2b36834f41 Add WHOX feature. 2014-02-10 02:48:59 +01:00
Shiz 26a2eb1391 Remove traces of old message system. 2014-02-10 02:48:59 +01:00
Shiz 24bccad18a Clean up irccat code a bit. 2014-02-10 02:48:59 +01:00
Shiz c7e5384358 Unconditionally sync metadata, even on quitting or killing. 2014-02-10 02:48:59 +01:00
Shiz 69c5d1d667 Add topic command to RFC1459 client. 2014-02-10 02:48:59 +01:00
Shiz 5ab0317198 Fix missing re import. 2014-02-10 02:48:59 +01:00
Shiz 790a45194a Newline polizei, please add newlines to the end of your files. 2014-02-10 02:48:55 +01:00
Shiz 14ebe3f308 Fix default on_ctcp_version to take content argument. 2014-02-10 02:47:50 +01:00