Louis Bettens
b294365fc1
change implementation of handler dispatching
...
This implementation has lockless handler lists, which reduces the time
during which the handler map lock must be held. It doesn't unlink empty
lists from the map, but as long as the set of events to handle is fixed
and finite it's arguably better that way.
2017-03-04 21:42:09 +01:00
Alex Bramley
1e190eb233
Run gofmt to fix some trailing whitespace &c.
2015-11-02 21:41:41 +00:00
Alex Bramley
ed92e36e8e
Attempt to improve the godoc of client.
2015-04-15 22:27:50 +01:00
Alex Bramley
144001d109
Split handlers up into three groups.
2013-09-28 00:15:54 +01:00
Alex Bramley
5bb0c8278d
Minimally invasive change to put logging behind a user-replaceable interface.
...
This could probably be done better, and there are probably awful caveats
and hidden gotchas with this approach. I REGRET NOTHING.
2013-09-27 22:19:40 +01:00
Alex Bramley
06a9cb5d0f
Give each handler its own copy of *Line.
...
Thanks to Kevin Ballard for the suggestion.
2013-04-08 18:04:40 +01:00
Alex Bramley
31606b7f2f
gofmt run.
2013-03-10 13:31:04 +00:00
Alex Bramley
ac9d05efa2
Port sp0rkle's panic recovery back into goirc.
2013-03-10 13:30:00 +00:00
Alex Bramley
5f2665dde8
Further comment tidy and code reorg.
2013-03-10 13:16:14 +00:00
Alex Bramley
4cd3831e92
Remove Commands from core goirc.
...
This dictates too much about how people might want to parse and act upon
information from PRIVMSGs, and thus should be an optional thing.
2013-02-27 20:23:24 +00:00
Alex Bramley
f27e56c8b0
Run gofmt, since it's clearly been a while.
2013-02-16 10:33:15 +00:00
Alex Bramley
a674267128
Re-work Handlers for IRC events; add Commands.
2013-02-16 00:17:31 +00:00