Shiz
be1a65dc7b
Move rfc1459.client.ServerSideError to rfc1459.protocol.ServerError.
2014-03-01 02:00:37 +01:00
Shiz
4a99da8860
Increase client-side ping timeout.
2014-03-01 00:43:59 +01:00
Shiz
0b6e285b6e
Don't throttle connection during registration.
2014-02-22 21:04:34 +01:00
Shiz
dd3a8d5b22
Add throttle attribute to Connection.
...
This attributes determines if the connection should throttle messages.
2014-02-22 21:01:57 +01:00
Shiz
30daca8457
Update ClientPool to work with the asynchronous changes.
...
This closes #21 .
2014-02-22 20:57:32 +01:00
Shiz
37c9f204c7
Add server-side error message handler.
2014-02-22 11:59:56 +01:00
Shiz
0b05101696
Install irccat as pydle-irccat instead.
2014-02-21 19:47:39 +01:00
Shiz
7b280adc97
Make super().on_raw_XXX() always safe in features.
2014-02-21 19:22:39 +01:00
Shiz
76ccc35bb8
Change ClientPool API to reflect future changes.
2014-02-21 19:10:38 +01:00
Shiz
a47bbb8e23
Improve API structure documentation.
2014-02-21 19:08:02 +01:00
Shiz
181e11b442
Restrict API directly imported into the pydle namespace.
2014-02-21 19:07:10 +01:00
Shiz
b7f6207e65
Restrict connection API, remove redundant error class.
2014-02-21 19:06:46 +01:00
Shiz
dedbb64267
Rename IRCError to Error.
2014-02-21 19:06:13 +01:00
Shiz
9b4242df77
Restate advantages in README.
...
Source code size isn't really that much of an issue when it is
well-organized, and I honestly can't be bothered updating the number
everytime something changes. It's mostly a subjective advantage anyway.
2014-02-21 18:35:46 +01:00
Shiz
b5a97cda7c
Rename _requests to _pending.
2014-02-21 18:33:56 +01:00
Shiz
f223f15575
Refactor ping timeout handler to not send client PINGs.
...
Instead rely on the server to send PING commands, in accordance with
RFC1459.
2014-02-21 18:29:58 +01:00
Shiz
3371fb49c9
Change disconnect() to disconnect(expected=True), remove _has_quit.
2014-02-21 18:25:05 +01:00
Shiz
71b8870522
Don't reset attributes twice on disconnect.
2014-02-21 04:55:17 +01:00
Shiz
65604e20da
Merge branch 'master' of github:Shizmob/pydle
2014-02-21 04:52:24 +01:00
Shiz
da4fe7a250
Added kick API.
2014-02-21 04:51:28 +01:00
Shiz
d04254e417
Refactor IRC exception constructors.
2014-02-21 04:50:04 +01:00
Tony Young
be4c8a4c45
Shorten reconnect delays and reset attributes on disconnect.
2014-02-21 10:43:33 +13:00
Tony Young
39df558e63
Check if futures exist in parallel() so we don't wait infinitely.
2014-02-21 00:42:04 +13:00
Tony Young
807242bd2c
Always return a Future from @coroutine.
2014-02-20 23:25:25 +13:00
Tony Young
ebc8f88c04
Allow non-generator factories to be decorated with @coroutine.
...
This is a no-op.
2014-02-20 23:00:50 +13:00
Tony Young
5491fa8a34
Fix broken _destroy_channel and KICK support.
2014-02-20 21:22:23 +13:00
Shiz
146c7deb8e
Fix variable naming in features.account.
...
I'm a nitpicking bastard.
2014-02-20 03:42:14 +01:00
Tony Young
b86fb45f5a
Remove unnecessary code for dealing with SIGPIPE.
...
Python installs a small number of signal handlers by default: SIGPIPE
is ignored (so write errors on pipes and sockets can be reported as
ordinary Python exceptions)...
2014-02-20 15:25:25 +13:00
Tony Young
954ae304c7
Remember to return the Future from AccountSupport.whois()
2014-02-20 15:08:58 +13:00
Shiz
4fab60ffa1
Properly parse PONG response.
2014-02-20 02:15:37 +01:00
Shiz
bf2781a10b
Don't update hostname/realname from server.
2014-02-20 02:12:50 +01:00
Shiz
4c58bb58b4
Don't remove handlers if none are present.
2014-02-20 01:56:52 +01:00
Shiz
255946dab6
Reorder features.
2014-02-20 01:55:06 +01:00
Shiz
8439d2d24b
Update documentation on recent changes.
2014-02-20 01:51:28 +01:00
Shiz
dab720d422
Create on_user_online/on_user_offline callbacks for MONITOR extension.
2014-02-20 01:50:55 +01:00
Shiz
1caf804fa1
Also set registration completed on missing MOTD.
2014-02-20 01:50:25 +01:00
Shiz
87541cf230
Change Client.mode()/Client.topic() to Client.set_mode()/Client.set_topic().
2014-02-20 01:50:00 +01:00
Shiz
6734bf7e99
Change nickname setting through attribute to Client.set_nickname().
2014-02-20 01:49:27 +01:00
Shiz
6628e5d74e
Move some features from rfc1459 to pydle.features.account.
2014-02-20 01:48:33 +01:00
Shiz
ccad21370b
Rename UNREGISTERED_NICKNAME to DEFAULT_NICKNAME.
2014-02-20 01:45:38 +01:00
Shiz
95e3d36fc0
Unschedule ping checking on disconnect.
2014-02-19 13:50:01 +01:00
Shiz
c52c5cce90
Implement client-side ping timeout.
...
This fixes #13 .
2014-02-19 13:34:37 +01:00
Shiz
923974de94
Fix crash when scheduling periodics.
2014-02-19 13:33:15 +01:00
Shiz
cd55afad60
Handle socket error conditions more gracefully.
2014-02-19 00:49:56 +01:00
Shiz
37dd569f26
Make EventLoop set a Future exception on timeout.
2014-02-18 23:57:18 +01:00
Shiz
6295843fb2
Add timeout for futures scheduled using EventLoop.
...
Callbacks for futures scheduled using EventLoop.on_future will now have
a timeout specified by EventLoop.future_timeout (in seconds). If the
future does not resolve within the given timeout, its result will be set
to async.FutureTimeout and the callback will be called.
This fixes #18 .
2014-02-18 23:52:13 +01:00
Shiz
cb87057ba6
Remove leftover redundant attribute.
2014-02-18 23:13:10 +01:00
Shiz
95f35a365a
Merge branch 'master' of github:Shizmob/pydle
2014-02-18 23:11:37 +01:00
Shiz
cfe4d02af9
Make EventLoop.schedule_* functions always return an unschedule handle.
...
schedule_in() and schedule_periodically() will now always return handles
that can be passed to unschedule(), even when not ran from the event
loop thread. In addition, calling unschedule() with the handle for
periodical callbacks will now also work after the first call of that
callback. The opaque IDs are currently implemented as a simple
monotonically increasing number.
This fixes #19 .
2014-02-18 23:10:42 +01:00
Tony Young
f32faa9058
Correctly raise KeyError when a non-string is found in NormalizingDict.
2014-02-18 00:55:08 +13:00